1 | <?php |
||
9 | class AssertJsonResponseTest extends PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | use AssertJsonResponse; |
||
12 | |||
13 | public function testSeeJsonStructureEquals() |
||
14 | { |
||
15 | $this->response = new \Illuminate\Http\Response(new JsonSerializableMixedResourcesStub); |
||
16 | |||
17 | $this->seeJsonStructureEquals([ |
||
18 | 'foo', |
||
19 | 'baz' => ['*' => ['bar' => ['*'], 'foo']], |
||
20 | 'bars' => ['*' => ['bar', 'foo']], |
||
21 | 'foobar' => ['foobar_foo', 'foobar_bar'], |
||
22 | ]); |
||
23 | } |
||
24 | |||
25 | public function testJsonResponse() |
||
39 | } |
||
40 |