1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add support for phpunit 10 (#11532)

* Use static test data providers

Using non-static methods as a data providers was deprecated in phpunit
10.

* Rename abstract test class

Abstract test case classes with Test suffix are deprecated in PHPUnit
10. We also change the ArchiverTest file name to match the new class
name (ArchiverTestCase).

* https://github.com/sebastianbergmann/phpunit/issues/5132
This commit is contained in:
Athos Ribeiro 2023-07-21 10:39:20 +02:00 committed by GitHub
parent e7016b00a9
commit 4b210d916e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -57,7 +57,7 @@ class HomeCommandTest extends TestCase
$this->assertSame(trim($expected), trim($appTester->getDisplay(true)));
}
public function useCaseProvider(): Generator
public static function useCaseProvider(): Generator
{
yield 'Invalid or missing repository URL' => [
[