| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function testCreateWithOptions() |
||
| 47 | { |
||
| 48 | $dompdf = $this->dompdfFactory->create(array( |
||
| 49 | 'dpi' => '200', |
||
| 50 | 'tempDir' => 'foo', |
||
| 51 | )); |
||
| 52 | |||
| 53 | $this->assertInstanceOf(Dompdf::class, $dompdf); |
||
| 54 | |||
| 55 | $options = $dompdf->getOptions(); |
||
| 56 | |||
| 57 | $this->assertInstanceOf(Options::class, $options); |
||
| 58 | $this->assertSame('foo', $options->getTempDir()); |
||
| 59 | $this->assertSame('200', $options->getDpi()); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |