Closed llaville closed 3 weeks ago
With PHPUnit 11 installed, when we run tests on a PHP 8.4 platform :
vendor/bin/phpunit --display-phpunit-deprecations
We got these results :
PHPUnit 11.4.3 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.0RC3
Configuration: /shared/backups/github/phplint/phpunit.xml
................................. 33 / 33 (100%)
Time: 00:00.172, Memory: 12.00 MB
There were 20 PHPUnit test runner deprecations:
1) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testHasItem(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
2) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testGetItem(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
3) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testSaveItem(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
4) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testClearPool(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
5) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testCacheHit(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
6) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testCacheMiss(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
7) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testCacheMissWithFileUnknown(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
8) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testCacheMissWithWrongFileFingerprint(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
9) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testGetCalls(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
10) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Cache\CacheTest::testFilenameHasReservedCharacters(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
11) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Configuration\ConsoleConfigTest::testConfigFileNotReadable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
12) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Configuration\ConsoleConfigTest::testCommandConfig(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
13) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Configuration\YamlConfigTest::testInvalidYamlFile(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
14) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Configuration\YamlConfigTest::testYamlConfig(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
15) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\EndToEnd\LintCommandTest::testLintDirectoryWithoutConfigurationAndCache(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
16) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\EndToEnd\LintCommandTest::testLintSyntaxErrorFileWithoutConfigurationAndCache(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
17) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Finder\FinderTest::testAllPhpFilesFoundShouldExists(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
18) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Finder\FinderTest::testAllPathShouldExistsAndReadable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
19) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Finder\FinderTest::testSearchPhpFilesWithCondition(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
20) Metadata found in doc-comment for method Overtrue\PHPLint\Tests\Output\OutputTest::testJunitOutput(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
OK, but there were issues!
Tests: 33, Assertions: 50, PHPUnit Deprecations: 20.
Summary
Add support to PHPUnit 11
Description
Now PHPLint 9.5 (latest version officially supported) has PHP minimum requirement set to 8.2, we will migrate tests from PHPUnit 10 to 11.