Add assertions for ->params and array access with json
This commit is contained in:
parent
973bcccd7c
commit
7cd8088845
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue