@@ 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 |
@@ 20-28 (lines=9) @@ | ||
17 | $this->response = new Response(new JsonSerializableMixedResourcesStub); |
|
18 | } |
|
19 | ||
20 | public function testSeeJsonStructureEquals() |
|
21 | { |
|
22 | $this->seeJsonStructureEquals([ |
|
23 | 'foo', |
|
24 | 'baz' => ['*' => ['bar' => ['*'], 'foo']], |
|
25 | 'bars' => ['*' => ['bar', 'foo']], |
|
26 | 'foobar' => ['foobar_foo', 'foobar_bar'], |
|
27 | ]); |
|
28 | } |
|
29 | ||
30 | ||
31 | public function testJsonResponse() |