codeigniter4 / shield

Authentication and Authorization for CodeIgniter 4
https://shield.codeigniter.com
MIT License
365 stars 133 forks source link

chore: add `psalm_autoload.php` for linter #1202

Closed datamweb closed 1 month ago

datamweb commented 1 month ago

Description Explain what you have changed, and why.

Checklist:

datamweb commented 1 month ago

It seems that the failure of the tests is not related to this PR.

   This program has encountered a fatal error and cannot continue running at Fri Sep 20 20:03:32 2024
   The following diagnostic information is available:

P:\MyGitHubWork\shield>php vendor/bin/phpunit
PHPUnit 9.6.21 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.0RC6 with Xdebug 3.3.0alpha3
Configuration: P:\MyGitHubWork\shield\phpunit.xml.dist
Random Seed:   1726862948

...............................................................  63 / 526 ( 11%)
............................................................... 126 / 526 ( 23%)
............................................................... 189 / 526 ( 35%)
............................................................... 252 / 526 ( 47%)
............................................................... 315 / 526 ( 59%)
............................................................... 378 / 526 ( 71%)
............................................................... 441 / 526 ( 83%)
............................................................... 504 / 526 ( 95%)
......................                                          526 / 526 (100%)

Nexus\PHPUnit\Extension\Tachycardia identified these 30 slow tests:
+---------------------------------------------------------------------------------+---------------+-------------+
| Test Case                                                                       | Time Consumed | Time Limit  |
+---------------------------------------------------------------------------------+---------------+-------------+
| Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndLogin         | 00:00:01.05   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisterRedirectsToActionIfDefined        | 00:00:01.02   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisteredAndSessionExpiredAndLogin       | 00:00:01.02   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisteredButNotActivatedAndRegisterAgain | 00:00:01.00   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisterActionSuccess                     | 00:00:01.00   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisterActionSuccessWithNoEmailLogin     | 00:00:00.99   | 00:00:00.50 |
| Tests\\Controllers\\RegisterTest::testRegisterActionWithBadEmailValue           | 00:00:00.97   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testAddgroupCancel                                   | 00:00:00.97   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testPassword                                         | 00:00:00.95   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testDeactivate                                       | 00:00:00.94   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testChangeemail                                      | 00:00:00.93   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testAddgroup                                         | 00:00:00.93   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testCreateWithInvalidGroup                           | 00:00:00.92   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testPasswordWithoutOptionsAndSpecifyEmail            | 00:00:00.92   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testDeleteUserNotExist                               | 00:00:00.92   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testRemovegroup                                      | 00:00:00.92   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testListByEmail                                      | 00:00:00.92   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testChangeemailInvalidEmail                          | 00:00:00.91   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testActivate                                         | 00:00:00.91   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testChangename                                       | 00:00:00.91   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testCreatePasswordNotMatch                           | 00:00:00.91   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testDeleteById                                       | 00:00:00.91   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testChangenameInvalidName                            | 00:00:00.91   | 00:00:00.50 |
| Tests\\Unit\\PasswordsTest::testHash                                            | 00:00:00.91   | 00:00:00.50 |
| Tests\\Unit\\DictionaryValidatorTest::testCheckTrueOnNotFound                   | 00:00:00.89   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testRemovegroupCancel                                | 00:00:00.89   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testCreateWithGroupBeta                              | 00:00:00.89   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testList                                             | 00:00:00.88   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testCreate                                           | 00:00:00.86   | 00:00:00.50 |
| Tests\\Commands\\UserTest::testNoAction                                         | 00:00:00.83   | 00:00:00.50 |
+---------------------------------------------------------------------------------+---------------+-------------+
...and 14 more tests hidden from view.

Time: 01:19.552, Memory: 54.00 MB

OK (526 tests, 1118 assertions)