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