Skip to content

Commit de282b9

Browse files
authored
Merge pull request #8057 from kenjis/remove-old-TestCases
refactor: remove deprecated test classes
2 parents b972d98 + 59b138a commit de282b9

File tree

7 files changed

+14
-1018
lines changed

7 files changed

+14
-1018
lines changed

phpstan-baseline.php

-180
Original file line numberDiff line numberDiff line change
@@ -3271,81 +3271,6 @@
32713271
'count' => 1,
32723272
'path' => __DIR__ . '/system/Session/SessionInterface.php',
32733273
];
3274-
$ignoreErrors[] = [
3275-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3276-
'count' => 4,
3277-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3278-
];
3279-
$ignoreErrors[] = [
3280-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:clearInsertCache\\(\\) has no return type specified\\.$#',
3281-
'count' => 1,
3282-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3283-
];
3284-
$ignoreErrors[] = [
3285-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:dontSeeInDatabase\\(\\) has no return type specified\\.$#',
3286-
'count' => 1,
3287-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3288-
];
3289-
$ignoreErrors[] = [
3290-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:loadDependencies\\(\\) has no return type specified\\.$#',
3291-
'count' => 1,
3292-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3293-
];
3294-
$ignoreErrors[] = [
3295-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:migrateDatabase\\(\\) has no return type specified\\.$#',
3296-
'count' => 1,
3297-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3298-
];
3299-
$ignoreErrors[] = [
3300-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:regressDatabase\\(\\) has no return type specified\\.$#',
3301-
'count' => 1,
3302-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3303-
];
3304-
$ignoreErrors[] = [
3305-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:resetMigrationSeedCount\\(\\) has no return type specified\\.$#',
3306-
'count' => 1,
3307-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3308-
];
3309-
$ignoreErrors[] = [
3310-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:runSeeds\\(\\) has no return type specified\\.$#',
3311-
'count' => 1,
3312-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3313-
];
3314-
$ignoreErrors[] = [
3315-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeInDatabase\\(\\) has no return type specified\\.$#',
3316-
'count' => 1,
3317-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3318-
];
3319-
$ignoreErrors[] = [
3320-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeNumRecords\\(\\) has no return type specified\\.$#',
3321-
'count' => 1,
3322-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3323-
];
3324-
$ignoreErrors[] = [
3325-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seed\\(\\) has no return type specified\\.$#',
3326-
'count' => 1,
3327-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3328-
];
3329-
$ignoreErrors[] = [
3330-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpDatabase\\(\\) has no return type specified\\.$#',
3331-
'count' => 1,
3332-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3333-
];
3334-
$ignoreErrors[] = [
3335-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpMigrate\\(\\) has no return type specified\\.$#',
3336-
'count' => 1,
3337-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3338-
];
3339-
$ignoreErrors[] = [
3340-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpSeed\\(\\) has no return type specified\\.$#',
3341-
'count' => 1,
3342-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3343-
];
3344-
$ignoreErrors[] = [
3345-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:tearDownDatabase\\(\\) has no return type specified\\.$#',
3346-
'count' => 1,
3347-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3348-
];
33493274
$ignoreErrors[] = [
33503275
'message' => '#^Method CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:assertCloseEnough\\(\\) has no return type specified\\.$#',
33513276
'count' => 1,
@@ -3436,111 +3361,6 @@
34363361
'count' => 1,
34373362
'path' => __DIR__ . '/system/Test/Fabricator.php',
34383363
];
3439-
$ignoreErrors[] = [
3440-
'message' => '#^Assigning \'test\' directly on offset \'HTTPS\' of \\$_SERVER is discouraged\\.$#',
3441-
'count' => 1,
3442-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3443-
];
3444-
$ignoreErrors[] = [
3445-
'message' => '#^Assigning string directly on offset \'REQUEST_METHOD\' of \\$_SERVER is discouraged\\.$#',
3446-
'count' => 1,
3447-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3448-
];
3449-
$ignoreErrors[] = [
3450-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3451-
'count' => 10,
3452-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3453-
];
3454-
$ignoreErrors[] = [
3455-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:clearInsertCache\\(\\) has no return type specified\\.$#',
3456-
'count' => 1,
3457-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3458-
];
3459-
$ignoreErrors[] = [
3460-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:dontSeeInDatabase\\(\\) has no return type specified\\.$#',
3461-
'count' => 1,
3462-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3463-
];
3464-
$ignoreErrors[] = [
3465-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:loadDependencies\\(\\) has no return type specified\\.$#',
3466-
'count' => 1,
3467-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3468-
];
3469-
$ignoreErrors[] = [
3470-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:migrateDatabase\\(\\) has no return type specified\\.$#',
3471-
'count' => 1,
3472-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3473-
];
3474-
$ignoreErrors[] = [
3475-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:regressDatabase\\(\\) has no return type specified\\.$#',
3476-
'count' => 1,
3477-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3478-
];
3479-
$ignoreErrors[] = [
3480-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:resetMigrationSeedCount\\(\\) has no return type specified\\.$#',
3481-
'count' => 1,
3482-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3483-
];
3484-
$ignoreErrors[] = [
3485-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:runSeeds\\(\\) has no return type specified\\.$#',
3486-
'count' => 1,
3487-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3488-
];
3489-
$ignoreErrors[] = [
3490-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeInDatabase\\(\\) has no return type specified\\.$#',
3491-
'count' => 1,
3492-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3493-
];
3494-
$ignoreErrors[] = [
3495-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeNumRecords\\(\\) has no return type specified\\.$#',
3496-
'count' => 1,
3497-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3498-
];
3499-
$ignoreErrors[] = [
3500-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seed\\(\\) has no return type specified\\.$#',
3501-
'count' => 1,
3502-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3503-
];
3504-
$ignoreErrors[] = [
3505-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpDatabase\\(\\) has no return type specified\\.$#',
3506-
'count' => 1,
3507-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3508-
];
3509-
$ignoreErrors[] = [
3510-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpMigrate\\(\\) has no return type specified\\.$#',
3511-
'count' => 1,
3512-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3513-
];
3514-
$ignoreErrors[] = [
3515-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpSeed\\(\\) has no return type specified\\.$#',
3516-
'count' => 1,
3517-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3518-
];
3519-
$ignoreErrors[] = [
3520-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:tearDownDatabase\\(\\) has no return type specified\\.$#',
3521-
'count' => 1,
3522-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3523-
];
3524-
$ignoreErrors[] = [
3525-
'message' => '#^Only booleans are allowed in a negated boolean, CodeIgniter\\\\Router\\\\RouteCollection\\|null given\\.$#',
3526-
'count' => 1,
3527-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3528-
];
3529-
$ignoreErrors[] = [
3530-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$bodyFormat \\(string\\) in isset\\(\\) is not nullable\\.$#',
3531-
'count' => 1,
3532-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3533-
];
3534-
$ignoreErrors[] = [
3535-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$clean \\(bool\\) in isset\\(\\) is not nullable\\.$#',
3536-
'count' => 1,
3537-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3538-
];
3539-
$ignoreErrors[] = [
3540-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$session \\(array\\) on left side of \\?\\? is not nullable\\.$#',
3541-
'count' => 1,
3542-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
3543-
];
35443364
$ignoreErrors[] = [
35453365
'message' => '#^Property CodeIgniter\\\\Test\\\\Mock\\\\MockCLIConfig\\:\\:\\$CSRFExcludeURIs has no type specified\\.$#',
35463366
'count' => 1,

system/Test/CIDatabaseTestCase.php

-24
This file was deleted.

system/Test/ControllerResponse.php

-99
This file was deleted.

0 commit comments

Comments
 (0)