Testing: enable more tests on HHVM using native Exceptions

This commit is contained in:
Denis
2014-02-17 13:46:04 +02:00
parent c67b08826f
commit 8780bc9f09
+4 -5
View File
@@ -23,11 +23,10 @@ class RunTest extends TestCase
*/
protected function getException($message = null)
{
if (defined('HHVM_VERSION')) {
return $this->markTestSkipped('HHVM does not support mocking exceptions.');
}
return m::mock('Exception', array($message));
// HHVM does not support mocking exceptions
// Since we do not use any additional features of Mockery for exceptions,
// we can just use native Exceptions instead.
return new \Exception($message);
}
/**