Skip to content

Commit e1438c3

Browse files
authored
Merge pull request #158 from php-school/fix-warning
Some PHP versions are printing warnings if empty filename passed to cgi
2 parents 0bbc3ef + f74180e commit e1438c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ExerciseRunner/CgiRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function testRunPassesOutputAndReturnsFailureIfARequestFails()
351351
$this->expectOutputString($exp);
352352

353353
$success = $this->runner->run(
354-
new Input('app', ['program' => '']),
354+
new Input('app', ['program' => 'not-existing-file.php']),
355355
$output
356356
);
357357
$this->assertFalse($success);

0 commit comments

Comments
 (0)