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