Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for phpunit 10 #11532

Merged
merged 2 commits into from Jul 21, 2023
Merged

Add support for phpunit 10 #11532

merged 2 commits into from Jul 21, 2023

Conversation

athos-ribeiro
Copy link
Contributor

No description provided.

Using non-static methods as a data providers was deprecated in phpunit
10.
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).

* sebastianbergmann/phpunit#5132
@athos-ribeiro athos-ribeiro changed the title Phpunit10 Add support for phpunit 10 Jul 3, 2023
@@ -57,7 +57,7 @@ public function testHomeCommandWithShowFlag(
$this->assertSame(trim($expected), trim($appTester->getDisplay(true)));
}

public function useCaseProvider(): Generator
public static function useCaseProvider(): Generator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use the php_unit_data_provider_static fixer of friendsofphp/php-cs-fixer here.

Perhaps extract into a separate pull request?

@Seldaek Seldaek merged commit 4b210d9 into composer:main Jul 21, 2023
17 of 18 checks passed
@Seldaek
Copy link
Member

Seldaek commented Jul 21, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants