| @@ 13-23 (lines=11) @@ | ||
| 10 | { |
|
| 11 | use AssertArrays; |
|
| 12 | ||
| 13 | public function testAssertArrayStructureEquals() |
|
| 14 | { |
|
| 15 | $array = (new JsonSerializableMixedResourcesStub)->jsonSerialize(); |
|
| 16 | ||
| 17 | $this->assertArrayStructureEquals([ |
|
| 18 | 'foo', |
|
| 19 | 'baz' => ['*' => ['bar' => ['*'], 'foo']], |
|
| 20 | 'bars' => ['*' => ['bar', 'foo']], |
|
| 21 | 'foobar' => ['foobar_foo', 'foobar_bar'], |
|
| 22 | ], $array); |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||
| @@ 13-23 (lines=11) @@ | ||
| 10 | { |
|
| 11 | use AssertJsonResponse; |
|
| 12 | ||
| 13 | public function testAssertArrayStructureEquals() |
|
| 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() |
|
| 26 | { |
|