Skip to content

Commit 4dc920b

Browse files
author
srathod
committed
- Updated test runner to take SampleCodeList.txt as parameter.
1 parent 549846e commit 4dc920b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-runner.php

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

0 commit comments

Comments
 (0)