Fix undefined variable

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-10-26 16:37:54 +01:00
parent f9ea3d8689
commit 46e3ea4e41
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ trait CommandLine {
public function theCommandOutputContainsTheText($text) {
$lines = $this->findLines($this->lastStdOut, $text);
if (empty($lines)) {
throw new \Exception('The command did not output the expected text on stdout "' . $exceptionText . '"');
throw new \Exception('The command did not output the expected text on stdout "' . $text . '"');
}
}
@ -170,7 +170,7 @@ trait CommandLine {
public function theCommandErrorOutputContainsTheText($text) {
$lines = $this->findLines($this->lastStdErr, $text);
if (empty($lines)) {
throw new \Exception('The command did not output the expected text on stderr "' . $exceptionText . '"');
throw new \Exception('The command did not output the expected text on stderr "' . $text . '"');
}
}
}