| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function testJsonResponse() |
||
| 36 | { |
||
| 37 | |||
| 38 | $this->assertTrue(TestResponse::hasMacro('jsonResponse')); |
||
| 39 | |||
| 40 | $this->assertEquals( |
||
| 41 | (new JsonSerializableMixedResourcesStub)->jsonSerialize(), |
||
| 42 | $this->response->jsonResponse() |
||
| 43 | ); |
||
| 44 | |||
| 45 | $this->assertEquals(['foobar_foo' => 'foo', 'foobar_bar' => 'bar'], $this->response->jsonResponse('foobar')); |
||
| 46 | |||
| 47 | $this->assertEquals('bar', $this->response->jsonResponse('foobar.foobar_bar')); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |