File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,19 @@ public function executeAfterLastTest(): void
66
66
}
67
67
68
68
/**
69
- * Resolves the parameters passed in to PHPUnit.
69
+ * Resolves the parameters passed to PHPUnit.
70
70
*
71
71
* eg. "phpunit --testsuite Unit --filter FirstTest"
72
72
*
73
- * $this->getPhpUnitParameter("filter"); // Unit
74
- * $this->getPhpUnitParameter("testsuite"); // FirstTest
73
+ * $this->getPhpUnitParameter("filter"); // FirstTest
74
+ * $this->getPhpUnitParameter("testsuite"); // Unit
75
75
*/
76
76
private function getPhpUnitParameter (string $ paramName ): ?string
77
77
{
78
- global $ argv ;
79
-
80
- if ($ offset = array_search ("-- $ paramName " , $ argv ) === false ) {
78
+ if ($ offset = array_search ("-- $ paramName " , $ GLOBALS ['argv ' ]) === false ) {
81
79
return null ;
82
80
}
83
81
84
- return trim ($ argv [$ offset + 1 ]);
82
+ return trim ($ GLOBALS [ ' argv ' ] [$ offset + 1 ]);
85
83
}
86
84
}
You can’t perform that action at this time.
0 commit comments