Add assertions for ->params and array access with json

This commit is contained in:
Thomas Tanghus 2013-09-30 16:23:43 +02:00
parent 973bcccd7c
commit 7cd8088845
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ class RequestTest extends \PHPUnit_Framework_TestCase {
$result = $request->post;
$this->assertEquals('John Q. Public', $result['name']);
$this->assertEquals('Joey', $result['nickname']);
$this->assertEquals('Joey', $request->params['nickname']);
$this->assertEquals('Joey', $request['nickname']);
}
public function testPatch() {