Skip to content

Commit 644fd8a

Browse files
committed
Fixing test for Fatal Error message
1 parent 79d59fd commit 644fd8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/PHPRocks/ErrorHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function testUndoErrorHandler(){
6666

6767
public function testFatalError()
6868
{
69-
$error = 'PHPRocks trapped: Allowed memory size of 262144 bytes exhausted (tried to allocate 256 bytes)';
70-
$this->assertSame($error, shell_exec('php tests/fixtures/fatal-error.php'));
69+
$error = 'PHPRocks trapped: Allowed memory size of 262144 bytes exhausted (tried to allocate ';
70+
$this->assertContains($error, shell_exec('php tests/fixtures/fatal-error.php'));
7171
}
7272

7373
public function testUndoFatalError()

0 commit comments

Comments
 (0)