@@ 13-23 (lines=11) @@ | ||
10 | { |
|
11 | use AssertArrays; |
|
12 | ||
13 | public function testAssertArrayStructureEquals() |
|
14 | { |
|
15 | $stub = new JsonSerializableMixedResourcesStub; |
|
16 | $array = $stub->jsonSerialize(); |
|
17 | ||
18 | $this->assertArrayStructureEquals($stub->structure(), $array); |
|
19 | } |
|
20 | ||
21 | public function testSeeArrayTypeStructureEquals() |
|
22 | { |
|
23 | $stub = new JsonSerializableMixedResourcesStub; |
|
24 | $array = $stub->jsonSerialize(); |
|
25 | ||
26 | $this->seeArrayTypedStructure($stub->typedStructure(), $array); |
@@ 16-26 (lines=11) @@ | ||
13 | use AssertJsonResponse, MakesHttpRequests; |
|
14 | ||
15 | public function setUp() |
|
16 | { |
|
17 | $this->stub = new JsonSerializableMixedResourcesStub; |
|
18 | $this->response = new Response($this->stub); |
|
19 | } |
|
20 | ||
21 | public function testSeeJsonStructureEquals() |
|
22 | { |
|
23 | $this->assertJsonStructureEquals($this->stub->structure()); |
|
24 | } |
|
25 | ||
26 | public function testJsonResponse() |
|
27 | { |
|
28 | $this->assertEquals( |
|
29 | ['foobar_foo' => 'foo', 'foobar_bar' => 212], |