Skip to content
Browse files

Closes #371.

  • Loading branch information...
1 parent cd4cea9 commit 88066816241215668267dc0d4a379f11a5154236 @sebastianbergmann committed Oct 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 PHPUnit/Framework/TestCase.php
View
4 PHPUnit/Framework/TestCase.php
@@ -398,7 +398,9 @@ public function getActualOutput()
*/
public function hasOutput()
{
- return !empty($this->output);
+ return !empty($this->output) &&
+ $this->outputExpectedString !== NULL &&
+ $this->outputExpectedRegex !== NULL;
}
/**

0 comments on commit 8806681

Please sign in to comment.
Something went wrong with that request. Please try again.