Skip to content

Commit 6701e18

Browse files
committed
Update IntegrationTestPHPUnitExtension.php
Signed-off-by: Nathanael Esayeas <[email protected]>
1 parent 1919c23 commit 6701e18

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/integration/IntegrationTestPHPUnitExtension.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,19 @@ public function executeAfterLastTest(): void
6666
}
6767

6868
/**
69-
* Resolves the parameters passed in to PHPUnit.
69+
* Resolves the parameters passed to PHPUnit.
7070
*
7171
* eg. "phpunit --testsuite Unit --filter FirstTest"
7272
*
73-
* $this->getPhpUnitParameter("filter"); // Unit
74-
* $this->getPhpUnitParameter("testsuite"); // FirstTest
73+
* $this->getPhpUnitParameter("filter"); // FirstTest
74+
* $this->getPhpUnitParameter("testsuite"); // Unit
7575
*/
7676
private function getPhpUnitParameter(string $paramName): ?string
7777
{
78-
global $argv;
79-
80-
if ($offset = array_search("--$paramName", $argv) === false) {
78+
if ($offset = array_search("--$paramName", $GLOBALS['argv']) === false) {
8179
return null;
8280
}
8381

84-
return trim($argv[$offset + 1]);
82+
return trim($GLOBALS['argv'][$offset + 1]);
8583
}
8684
}

0 commit comments

Comments
 (0)