mirror of
https://github.com/filp/whoops.git
synced 2026-09-05 15:08:19 +00:00
Testing: enable more tests on HHVM using native Exceptions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user