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:
parent
e7016b00a9
commit
4b210d916e
6 changed files with 6 additions and 6 deletions
|
@ -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' => [
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue