Commit 11a098ad authored by Patrick Barroca's avatar Patrick Barroca 🐧

php7 compatibility

parent b37c5045
......@@ -31,7 +31,10 @@ class Storm_Test_MockTest extends Storm_Test_ModelTestCase {
$this->mock()->zork();
} catch (Storm_Test_ObjectWrapperException $e) {
$this->assertContains('[Storm_Test_Mock', $e->getMessage());
$this->assertContains('Storm/Test/MockTest.php:31] cannot execute "zork()"', $e->getMessage());
$expected = '';
if (function_exists('xdebug_call_file') && function_exists('xdebug_call_line'))
$expected .= 'Storm/Test/MockTest.php:31]';
$this->assertContains($expected . ' cannot execute "zork()"', $e->getMessage());
return;
}
$this->fail('No exception thrown');
......@@ -44,7 +47,8 @@ class Storm_Test_MockTest extends Storm_Test_ModelTestCase {
$this->mock()->beStrict()->zork();
} catch (Storm_Test_ObjectWrapperException $e) {
$this->assertContains('Cannot find redirection for Storm_Test_Mock', $e->getMessage());
$this->assertContains('Storm/Test/MockTest.php:44]', $e->getMessage());
if (function_exists('xdebug_call_file') && function_exists('xdebug_call_line'))
$this->assertContains('Storm/Test/MockTest.php:44]', $e->getMessage());
return;
}
$this->fail('No exception thrown');
......
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