Commit c218f7ab authored by Patrick Barroca's avatar Patrick Barroca 🐧

fix test failures

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