Skip to content

Commit 6b19258

Browse files
committed
PHPLIB-510: Don't check exception message for empty strings
1 parent f0870fb commit 6b19258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/SpecTests/ErrorExpectation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function assert(TestCase $test, Exception $actual = null)
144144

145145
$test->assertNotNull($actual);
146146

147-
if (isset($this->messageContains)) {
147+
if (isset($this->messageContains) && $this->messageContains !== '') {
148148
$test->assertStringContainsStringIgnoringCase($this->messageContains, $actual->getMessage());
149149
}
150150

0 commit comments

Comments
 (0)