Skip to content

Commit d5e4351

Browse files
authored
Merge pull request #7978 from ProcessMaker/feature/FOUR-21698
FOUR-21698 Adjust the schema for PHPUnit 10.0
2 parents 9d6efa6 + 476f63c commit d5e4351

5 files changed

Lines changed: 15 additions & 16 deletions

File tree

‎phpunit.xml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
processIsolation="false"
55
stopOnFailure="false"
66
bootstrap="tests/bootstrap.php"
7-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
8-
>
7+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
98
<testsuites>
109
<testsuite name="Features">
1110
<directory>tests/Feature</directory>

‎tests/Feature/Api/PerformanceApiTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function calculateUnitTime($times = 100)
4141
}
4242

4343
// Endpoints to be tested
44-
private $endpoints = [
44+
private static $endpoints = [
4545
['l5-swagger.default.oauth2_callback', []],
4646
['passport.tokens.index', []],
4747
['passport.clients.index', []],
@@ -77,11 +77,11 @@ private function calculateUnitTime($times = 100)
7777

7878
const DESIRABLE_ROUTE_SPEED = 11;
7979

80-
public function RoutesListProvider()
80+
public static function RoutesListProvider()
8181
{
8282
file_exists('coverage') ?: mkdir('coverage');
8383

84-
return $this->endpoints;
84+
return self::$endpoints;
8585
}
8686

8787
/**

‎tests/Feature/Api/PerformanceRoutesTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private function calculateUnitTime($times = 100)
4040
}
4141

4242
// Endpoints to be tested
43-
private $endpoints = [
43+
private static $endpoints = [
4444
['groups.index', []],
4545
['users.index', []],
4646
['auth-clients.index', []],
@@ -79,11 +79,11 @@ private function calculateUnitTime($times = 100)
7979

8080
const DESIRABLE_ROUTE_SPEED = 11;
8181

82-
public function RoutesListProvider()
82+
public static function RoutesListProvider()
8383
{
8484
file_exists('coverage') ?: mkdir('coverage');
8585

86-
return $this->endpoints;
86+
return self::endpoints;
8787
}
8888

8989
/**

‎tests/Feature/Api/ProcessPatternsTest.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public function testProcessPatterns($type, $bpmnFile, $context = [])
5252
*
5353
* @return array
5454
*/
55-
public function prepareTestCasesProvider()
55+
public static function prepareTestCasesProvider()
5656
{
5757
$tests = [];
58-
$tests = $this->prepareTestCases('Conditional_StartEvent.bpmn', $tests);
59-
$tests = $this->prepareTestCases('Conditional_IntermediateEvent.bpmn', $tests);
60-
$tests = $this->prepareTestCases('MultiInstance_SequentialCallActivity.bpmn', $tests);
61-
$tests = $this->prepareTestCases('Loop_Task.bpmn', $tests);
62-
$tests = $this->prepareTestCases('SignalWithCustomPayload.bpmn', $tests);
58+
$tests = self::prepareTestCases('Conditional_StartEvent.bpmn', $tests);
59+
$tests = self::prepareTestCases('Conditional_IntermediateEvent.bpmn', $tests);
60+
$tests = self::prepareTestCases('MultiInstance_SequentialCallActivity.bpmn', $tests);
61+
$tests = self::prepareTestCases('Loop_Task.bpmn', $tests);
62+
$tests = self::prepareTestCases('SignalWithCustomPayload.bpmn', $tests);
6363

6464
return $tests;
6565
}
@@ -72,7 +72,7 @@ public function prepareTestCasesProvider()
7272
*
7373
* @return array
7474
*/
75-
private function prepareTestCases($bpmnFile, array $tests)
75+
private static function prepareTestCases($bpmnFile, array $tests)
7676
{
7777
$file = "{$this->basePath}{$bpmnFile}";
7878
$name = basename($bpmnFile, '.bpmn');

‎tests/Feature/ImportExport/Api/ExportImportTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function testExportImportFull($importType)
237237
$this->assertAssetsWasImported($scenario);
238238
}
239239

240-
public function importType()
240+
public static function importType()
241241
{
242242
return [
243243
['update'],

0 commit comments

Comments
 (0)