PHPLIB-510: Don't check exception message for empty strings

parent f0870fb3
......@@ -144,7 +144,7 @@ final class ErrorExpectation
$test->assertNotNull($actual);
if (isset($this->messageContains)) {
if (isset($this->messageContains) && $this->messageContains !== '') {
$test->assertStringContainsStringIgnoringCase($this->messageContains, $actual->getMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment