We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc920b commit a7a0037Copy full SHA for a7a0037
1 file changed
test-runner.php
@@ -44,10 +44,10 @@ public static function getDay(){
44
}
45
public function testAllSampleCodes(){
46
$runTests = 0;
47
- if ( $argc != 2 ) {
+ if ( $_SERVER['argc'] != 2 ) {
48
die('\n Usage: phpunit test-runner.php <SampleCodeListFile>');
49
50
- $file = $argv[1];
+ $file = $_SERVER['argv'][1];
51
$data = file($file) or die('\nCould not read SampleCodeList.');
52
foreach ($data as $line)
53
{
0 commit comments