Skip to content

FOUR-21698 Adjust the schema for PHPUnit 10.0 #7978

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

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
<testsuites>
<testsuite name="Features">
<directory>tests/Feature</directory>
Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/Api/PerformanceApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private function calculateUnitTime($times = 100)
}

// Endpoints to be tested
private $endpoints = [
private static $endpoints = [
['l5-swagger.default.oauth2_callback', []],
['passport.tokens.index', []],
['passport.clients.index', []],
Expand Down Expand Up @@ -77,11 +77,11 @@ private function calculateUnitTime($times = 100)

const DESIRABLE_ROUTE_SPEED = 11;

public function RoutesListProvider()
public static function RoutesListProvider()
{
file_exists('coverage') ?: mkdir('coverage');

return $this->endpoints;
return self::$endpoints;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/Api/PerformanceRoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function calculateUnitTime($times = 100)
}

// Endpoints to be tested
private $endpoints = [
private static $endpoints = [
['groups.index', []],
['users.index', []],
['auth-clients.index', []],
Expand Down Expand Up @@ -79,11 +79,11 @@ private function calculateUnitTime($times = 100)

const DESIRABLE_ROUTE_SPEED = 11;

public function RoutesListProvider()
public static function RoutesListProvider()
{
file_exists('coverage') ?: mkdir('coverage');

return $this->endpoints;
return self::endpoints;
}

/**
Expand Down
14 changes: 7 additions & 7 deletions tests/Feature/Api/ProcessPatternsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public function testProcessPatterns($type, $bpmnFile, $context = [])
*
* @return array
*/
public function prepareTestCasesProvider()
public static function prepareTestCasesProvider()
{
$tests = [];
$tests = $this->prepareTestCases('Conditional_StartEvent.bpmn', $tests);
$tests = $this->prepareTestCases('Conditional_IntermediateEvent.bpmn', $tests);
$tests = $this->prepareTestCases('MultiInstance_SequentialCallActivity.bpmn', $tests);
$tests = $this->prepareTestCases('Loop_Task.bpmn', $tests);
$tests = $this->prepareTestCases('SignalWithCustomPayload.bpmn', $tests);
$tests = self::prepareTestCases('Conditional_StartEvent.bpmn', $tests);
$tests = self::prepareTestCases('Conditional_IntermediateEvent.bpmn', $tests);
$tests = self::prepareTestCases('MultiInstance_SequentialCallActivity.bpmn', $tests);
$tests = self::prepareTestCases('Loop_Task.bpmn', $tests);
$tests = self::prepareTestCases('SignalWithCustomPayload.bpmn', $tests);

return $tests;
}
Expand All @@ -72,7 +72,7 @@ public function prepareTestCasesProvider()
*
* @return array
*/
private function prepareTestCases($bpmnFile, array $tests)
private static function prepareTestCases($bpmnFile, array $tests)
{
$file = "{$this->basePath}{$bpmnFile}";
$name = basename($bpmnFile, '.bpmn');
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ImportExport/Api/ExportImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function testExportImportFull($importType)
$this->assertAssetsWasImported($scenario);
}

public function importType()
public static function importType()
{
return [
['update'],
Expand Down
Loading