Skip to content

Commit 9208a60

Browse files
authored
Merge pull request #8264 from paulbalandan/test-response-refactor
refactor: `TestResponse` is now a class of its own
2 parents 9e8786c + 1eb8d83 commit 9208a60

File tree

5 files changed

+104
-226
lines changed

5 files changed

+104
-226
lines changed

phpstan-baseline.php

-115
Original file line numberDiff line numberDiff line change
@@ -3526,121 +3526,6 @@
35263526
'count' => 1,
35273527
'path' => __DIR__ . '/system/Test/TestLogger.php',
35283528
];
3529-
$ignoreErrors[] = [
3530-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3531-
'count' => 1,
3532-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3533-
];
3534-
$ignoreErrors[] = [
3535-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:__call\\(\\) should return mixed but return statement is missing\\.$#',
3536-
'count' => 1,
3537-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3538-
];
3539-
$ignoreErrors[] = [
3540-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertCookie\\(\\) has no return type specified\\.$#',
3541-
'count' => 1,
3542-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3543-
];
3544-
$ignoreErrors[] = [
3545-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertCookieExpired\\(\\) has no return type specified\\.$#',
3546-
'count' => 1,
3547-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3548-
];
3549-
$ignoreErrors[] = [
3550-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertCookieMissing\\(\\) has no return type specified\\.$#',
3551-
'count' => 1,
3552-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3553-
];
3554-
$ignoreErrors[] = [
3555-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertDontSee\\(\\) has no return type specified\\.$#',
3556-
'count' => 1,
3557-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3558-
];
3559-
$ignoreErrors[] = [
3560-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertDontSeeElement\\(\\) has no return type specified\\.$#',
3561-
'count' => 1,
3562-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3563-
];
3564-
$ignoreErrors[] = [
3565-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertHeader\\(\\) has no return type specified\\.$#',
3566-
'count' => 1,
3567-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3568-
];
3569-
$ignoreErrors[] = [
3570-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertHeaderMissing\\(\\) has no return type specified\\.$#',
3571-
'count' => 1,
3572-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3573-
];
3574-
$ignoreErrors[] = [
3575-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertJSONExact\\(\\) has no return type specified\\.$#',
3576-
'count' => 1,
3577-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3578-
];
3579-
$ignoreErrors[] = [
3580-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertJSONFragment\\(\\) has no return type specified\\.$#',
3581-
'count' => 1,
3582-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3583-
];
3584-
$ignoreErrors[] = [
3585-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertNotOK\\(\\) has no return type specified\\.$#',
3586-
'count' => 1,
3587-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3588-
];
3589-
$ignoreErrors[] = [
3590-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertNotRedirect\\(\\) has no return type specified\\.$#',
3591-
'count' => 1,
3592-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3593-
];
3594-
$ignoreErrors[] = [
3595-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertOK\\(\\) has no return type specified\\.$#',
3596-
'count' => 1,
3597-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3598-
];
3599-
$ignoreErrors[] = [
3600-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertRedirect\\(\\) has no return type specified\\.$#',
3601-
'count' => 1,
3602-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3603-
];
3604-
$ignoreErrors[] = [
3605-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertRedirectTo\\(\\) has no return type specified\\.$#',
3606-
'count' => 1,
3607-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3608-
];
3609-
$ignoreErrors[] = [
3610-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSee\\(\\) has no return type specified\\.$#',
3611-
'count' => 1,
3612-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3613-
];
3614-
$ignoreErrors[] = [
3615-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSeeElement\\(\\) has no return type specified\\.$#',
3616-
'count' => 1,
3617-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3618-
];
3619-
$ignoreErrors[] = [
3620-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSeeInField\\(\\) has no return type specified\\.$#',
3621-
'count' => 1,
3622-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3623-
];
3624-
$ignoreErrors[] = [
3625-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSeeLink\\(\\) has no return type specified\\.$#',
3626-
'count' => 1,
3627-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3628-
];
3629-
$ignoreErrors[] = [
3630-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSessionHas\\(\\) has no return type specified\\.$#',
3631-
'count' => 1,
3632-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3633-
];
3634-
$ignoreErrors[] = [
3635-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertSessionMissing\\(\\) has no return type specified\\.$#',
3636-
'count' => 1,
3637-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3638-
];
3639-
$ignoreErrors[] = [
3640-
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:assertStatus\\(\\) has no return type specified\\.$#',
3641-
'count' => 1,
3642-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3643-
];
36443529
$ignoreErrors[] = [
36453530
'message' => '#^Property CodeIgniter\\\\Throttle\\\\Throttler\\:\\:\\$testTime \\(int\\) on left side of \\?\\? is not nullable\\.$#',
36463531
'count' => 1,

0 commit comments

Comments
 (0)