Skip to content

Commit 8368b77

Browse files
committed
test: drop the removed Response constructor argument in HTTP tests
1 parent c278a63 commit 8368b77

4 files changed

Lines changed: 4 additions & 14 deletions

File tree

‎tests/system/HTTP/ContentSecurityPolicyTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testReportOnly(): void
123123

124124
Services::injectMock('csp', new ContentSecurityPolicy($config));
125125

126-
$this->response = new Response(config(App::class));
126+
$this->response = new Response();
127127
$this->response->pretend(false);
128128
$this->csp = $this->response->getCSP();
129129

‎tests/system/HTTP/ResponseTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ public function testGetDownloadResponseByFilePath(): void
490490

491491
public function testGetDownloadResponseByExtremeFilePath(): void
492492
{
493-
$response = new Response(new App());
493+
$response = new Response();
494494

495495
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir_' . bin2hex(random_bytes(8));
496496
$this->assertTrue(mkdir($tempDir));
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 6 errors
1+
# total 4 errors
22

33
parameters:
44
ignoreErrors:
@@ -11,13 +11,3 @@ parameters:
1111
message: '#^Function is_cli invoked with 1 parameter, 0 required\.$#'
1212
count: 2
1313
path: ../../tests/system/Debug/ToolbarTest.php
14-
15-
-
16-
message: '#^Class CodeIgniter\\HTTP\\Response constructor invoked with 1 parameter, 0 required\.$#'
17-
count: 1
18-
path: ../../tests/system/HTTP/ContentSecurityPolicyTest.php
19-
20-
-
21-
message: '#^Class CodeIgniter\\HTTP\\Response constructor invoked with 1 parameter, 0 required\.$#'
22-
count: 1
23-
path: ../../tests/system/HTTP/ResponseTest.php

‎utils/phpstan-baseline/loader.neon‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 32 errors
1+
# total 30 errors
22

33
includes:
44
- arguments.count.neon

0 commit comments

Comments
 (0)