Add JsonResponseHandler & tests

This commit is contained in:
filp
2013-03-16 16:14:57 +00:00
parent c33a8ce217
commit 1bdc4d7828
3 changed files with 20 additions and 11 deletions
+8
View File
@@ -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.
-11
View File
@@ -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
*/
+12
View File
@@ -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