Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testDefaultParameters() |
||
10 | { |
||
11 | $response = new PdfResponse('some_binary_output'); |
||
12 | |||
13 | $this->assertSame(200, $response->getStatusCode()); |
||
14 | $this->assertSame('some_binary_output', $response->getContent()); |
||
15 | $this->assertSame('application/pdf', $response->headers->get('Content-Type')); |
||
16 | $this->assertSame('attachment; filename="output.pdf"', $response->headers->get('Content-Disposition')); |
||
17 | } |
||
18 | |||
37 |