Skip to content

Commit a7a0037

Browse files
author
srathod
committed
- Fixed the command line variable name.
1 parent 4dc920b commit a7a0037

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test-runner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public static function getDay(){
4444
}
4545
public function testAllSampleCodes(){
4646
$runTests = 0;
47-
if ( $argc != 2 ) {
47+
if ( $_SERVER['argc'] != 2 ) {
4848
die('\n Usage: phpunit test-runner.php <SampleCodeListFile>');
4949
}
50-
$file = $argv[1];
50+
$file = $_SERVER['argv'][1];
5151
$data = file($file) or die('\nCould not read SampleCodeList.');
5252
foreach ($data as $line)
5353
{

0 commit comments

Comments
 (0)