Skip to content

Commit

Permalink
Merge pull request #57 from magento-gl/phpunit10
Browse files Browse the repository at this point in the history
[Arrows] Delivery of PHPUnit 10 Upgrade
  • Loading branch information
sidolov authored Jun 14, 2024
2 parents de42815 + 0e31b83 commit 3d2e6e5
Show file tree
Hide file tree
Showing 23 changed files with 287 additions and 397 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"require-dev": {
"ext-dom": "*",
"phpunit/phpunit": "~9.5.8",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "~3.6.0"
},
"autoload": {
Expand Down
636 changes: 263 additions & 373 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dev/tests/Unit/ClassHierarchy/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function testIsTrait(string $type, bool $expected)
*
* @return array
*/
public function dataProviderIsClass()
public static function dataProviderIsClass()
{
return [
'entity-is-class-returns-true' => [
Expand All @@ -511,7 +511,7 @@ public function dataProviderIsClass()
*
* @return array
*/
public function dataProviderIsInterface()
public static function dataProviderIsInterface()
{
return [
'entity-is-class-returns-false' => [
Expand All @@ -534,7 +534,7 @@ public function dataProviderIsInterface()
*
* @return array
*/
public function dataProviderIsTrait()
public static function dataProviderIsTrait()
{
return [
'entity-is-class-returns-false' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-class';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-interface';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-trait';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testExecute(
/**
* @return array
*/
public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/db_schema';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/di_xml';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/layout_xml';
getcwd();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/less';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function executeCommand($pathToSourceCodeBefore, $pathToSourceCodeAfte
return $commandTester;
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/mftf';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/non-api-class';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/non-api-interface';
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/non-api-trait';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/system_xml';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/xsd-schema';

Expand Down
2 changes: 1 addition & 1 deletion dev/tests/Unit/Console/Command/HierarchyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/HierarchyTest/_files';
return [
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/Unit/Console/Command/HtmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testExecute(
);
}

public function changesDataProvider()
public static function changesDataProvider()
{
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/all';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testFilter($dataFolder, $filteredSection, $expectsRemaining)
*
* @return array
*/
public function filterDataProvider()
public static function filterDataProvider()
{
return [
['package_version_name_matches', 'version', false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testFilter($dataFolder, $expectsRemaining)
*
* @return array
*/
public function filterDataProvider()
public static function filterDataProvider()
{
return [
['condensed_comments_match', false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testFilter($dataFolder, $ignoredTags, $ignoredTagValues, $caseSe
*
* @return array
*/
public function filterDataProvider()
public static function filterDataProvider()
{
return [
['add_ignored_tag_only_comment', ['ignored'], [], true, false],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testFilter($dataFolder, $expectsRemaining)
*
* @return array
*/
public function filterDataProvider()
public static function filterDataProvider()
{
return [
['filtered_changes_remain', true],
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/Unit/Reporter/HtmlTargetDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testUrl(bool $hasOption, string $target, string $context, string
$this->assertEquals($expected, $result);
}

public function dataProviderTestUrl()
public static function dataProviderTestUrl()
{
return [
'target-context-class' => [
Expand Down

0 comments on commit 3d2e6e5

Please sign in to comment.