Last change
on this file since 394 was 347, checked in by roby, 3 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
781 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Spipu\Html2Pdf\Tests;
|
---|
4 |
|
---|
5 | use Spipu\Html2Pdf\Html2Pdf;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Class Html2PdfTest
|
---|
9 | */
|
---|
10 | abstract class AbstractTest extends \PHPUnit_Framework_TestCase
|
---|
11 | {
|
---|
12 | /**
|
---|
13 | * @var Html2Pdf
|
---|
14 | */
|
---|
15 | private $html2pdf;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Executed before each test
|
---|
19 | */
|
---|
20 | protected function setUp()
|
---|
21 | {
|
---|
22 | $this->html2pdf = new Html2Pdf('P', 'A4', 'fr', true, 'UTF-8', [0, 0, 0, 0]);
|
---|
23 | $this->html2pdf->pdf->SetTitle('PhpUnit Test');
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Executed after each test
|
---|
28 | */
|
---|
29 | protected function tearDown()
|
---|
30 | {
|
---|
31 | $this->html2pdf->clean();
|
---|
32 | $this->html2pdf = null;
|
---|
33 | }
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Get the object to test
|
---|
37 | *
|
---|
38 | * @return Html2Pdf
|
---|
39 | */
|
---|
40 | protected function getObject()
|
---|
41 | {
|
---|
42 | return $this->html2pdf;
|
---|
43 | }
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.