Skip to content

Commit d21384e

Browse files
committed
test: drop the removed Response constructor argument in HTTP tests
1 parent 8b6fb8c commit d21384e

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 11 errors
1+
# total 9 errors
22

33
parameters:
44
ignoreErrors:
@@ -16,13 +16,3 @@ parameters:
1616
message: '#^Class CodeIgniter\\HTTP\\Response constructor invoked with 1 parameter, 0 required\.$#'
1717
count: 5
1818
path: ../../tests/system/HTTP/CURLRequestExceptionTest.php
19-
20-
-
21-
message: '#^Class CodeIgniter\\HTTP\\Response constructor invoked with 1 parameter, 0 required\.$#'
22-
count: 1
23-
path: ../../tests/system/HTTP/ContentSecurityPolicyTest.php
24-
25-
-
26-
message: '#^Class CodeIgniter\\HTTP\\Response constructor invoked with 1 parameter, 0 required\.$#'
27-
count: 1
28-
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 37 errors
1+
# total 35 errors
22

33
includes:
44
- arguments.count.neon

0 commit comments

Comments
 (0)