1234567891011121314151617181920212223242526 |
- <?php
- class mPDFTest extends PHPUnit_Framework_TestCase
- {
- private $mpdf;
- public function setup()
- {
- parent::setup();
- $this->mpdf = new mPDF();
- }
- public function testPdfOutput()
- {
- $this->mpdf->writeHtml('<html><body>
- <h1>Test</h1>
- </body></html>');
- $output = $this->mpdf->Output(NULL, 'S');
- $this->assertStringStartsWith('%PDF-', $output);
- }
- }
|