mirror of
https://github.com/filp/whoops.git
synced 2026-09-10 09:46:18 +00:00
Add JsonResponseHandler & tests
This commit is contained in:
@@ -45,6 +45,14 @@ class Inspector
|
||||
return get_class($this->exception);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExceptionMessage()
|
||||
{
|
||||
return $this->exception->getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator for the inspected exception's
|
||||
* frames.
|
||||
|
||||
@@ -14,17 +14,6 @@ use Mockery as m;
|
||||
|
||||
class RunTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return Damnit\Run
|
||||
*/
|
||||
protected function getRunInstance()
|
||||
{
|
||||
$run = new Run;
|
||||
$run->allowQuit(false);
|
||||
|
||||
return $run;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Damnit\Handler\Handler
|
||||
*/
|
||||
|
||||
@@ -5,10 +5,22 @@
|
||||
*/
|
||||
|
||||
namespace Damnit;
|
||||
use Damnit\Run;
|
||||
use Mockery as m;
|
||||
|
||||
class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @return Damnit\Run
|
||||
*/
|
||||
protected function getRunInstance()
|
||||
{
|
||||
$run = new Run;
|
||||
$run->allowQuit(false);
|
||||
|
||||
return $run;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
* @return Exception
|
||||
|
||||
Reference in New Issue
Block a user