Commit 8f5563ae authored by Igor Wiedler's avatar Igor Wiedler

test that before and after return $this

parent 0dd70c53
...@@ -39,6 +39,12 @@ class FrameworkTest extends \PHPUnit_Framework_TestCase ...@@ -39,6 +39,12 @@ class FrameworkTest extends \PHPUnit_Framework_TestCase
$returnValue = $framework->delete('/foo', function() {}); $returnValue = $framework->delete('/foo', function() {});
$this->assertSame($framework, $returnValue, '->delete() should return $this'); $this->assertSame($framework, $returnValue, '->delete() should return $this');
$returnValue = $framework->before(function() {});
$this->assertSame($framework, $returnValue, '->before() should return $this');
$returnValue = $framework->after(function() {});
$this->assertSame($framework, $returnValue, '->after() should return $this');
$returnValue = $framework->error(function() {}); $returnValue = $framework->error(function() {});
$this->assertSame($framework, $returnValue, '->error() should return $this'); $this->assertSame($framework, $returnValue, '->error() should return $this');
} }
......
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