Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testDefaultParameters() |
||
11 | { |
||
12 | $response = new JpegResponse('some_binary_output'); |
||
13 | |||
14 | $this->assertSame(200, $response->getStatusCode()); |
||
15 | $this->assertSame('some_binary_output', $response->getContent()); |
||
16 | $this->assertSame('image/jpg', $response->headers->get('Content-Type')); |
||
17 | $this->assertSame('inline; filename=output.jpg', str_replace('"', '', $response->headers->get('Content-Disposition'))); |
||
18 | } |
||
19 | |||
38 |