html2pdf mit composer hinzugefügt
This commit is contained in:
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/AbstractTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/AbstractTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class AbstractTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\AbstractTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class AbstractTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\AbstractTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/CssConverterTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/CssConverterTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class CssConverterTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\CssConverterTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class CssConverterTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\CssConverterTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class ExceptionFormatterTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\ExceptionFormatterTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class ExceptionFormatterTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\ExceptionFormatterTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/HtmlTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/HtmlTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class HtmlTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\HtmlTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class HtmlTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\HtmlTestCase
|
||||
{
|
||||
}
|
||||
}
|
47
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php
vendored
Normal file
47
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/AbstractTestCase.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use Spipu\Html2Pdf\Html2Pdf;
|
||||
|
||||
abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var Html2Pdf
|
||||
*/
|
||||
protected $html2pdf;
|
||||
|
||||
/**
|
||||
* Executed before each test
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->html2pdf = new Html2Pdf('P', 'A4', 'fr', true, 'UTF-8', [0, 0, 0, 0]);
|
||||
$this->html2pdf->pdf->SetTitle('PhpUnit Test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Executed after each test
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
$this->html2pdf->clean();
|
||||
$this->html2pdf = null;
|
||||
}
|
||||
|
||||
public function expectException($exception)
|
||||
{
|
||||
if (method_exists(\PHPUnit_Framework_TestCase::class, 'setExpectedException')) {
|
||||
$this->setExpectedException($exception);
|
||||
}
|
||||
}
|
||||
|
||||
public function expectExceptionMessage($message, $exception = null)
|
||||
{
|
||||
if (method_exists(\PHPUnit_Framework_TestCase::class, 'expectExceptionMessage')) {
|
||||
parent::expectExceptionMessage($message);
|
||||
} elseif (method_exists(\PHPUnit_Framework_TestCase::class, 'setExpectedException')) {
|
||||
$this->setExpectedException($exception, $message);
|
||||
}
|
||||
}
|
||||
}
|
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php
vendored
Normal file
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/CssConverterTestCase.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\CssConverter;
|
||||
|
||||
abstract class CssConverterTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var CssConverter
|
||||
*/
|
||||
protected $cssConverter;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->cssConverter = new CssConverter();
|
||||
}
|
||||
}
|
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php
vendored
Normal file
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/ExceptionFormatterTestCase.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
abstract class ExceptionFormatterTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
}
|
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php
vendored
Normal file
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\Html;
|
||||
|
||||
abstract class HtmlTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var Html
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$textParser = $this->getMockBuilder('Spipu\Html2Pdf\Parsing\TextParser')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['prepareTxt'])
|
||||
->getMock();
|
||||
|
||||
$textParser
|
||||
->expects($this->any())
|
||||
->method('prepareTxt')
|
||||
->will($this->returnCallback([$this, 'mockPrepareTxt']));
|
||||
|
||||
$this->object = new Html($textParser);
|
||||
}
|
||||
}
|
24
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php
vendored
Normal file
24
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/SvgDrawerTestCase.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\CssConverter;
|
||||
use Spipu\Html2Pdf\SvgDrawer;
|
||||
|
||||
abstract class SvgDrawerTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var SvgDrawer
|
||||
*/
|
||||
protected $svgDrawer;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$myPdf = $this->createMock('Spipu\Html2Pdf\MyPdf');
|
||||
|
||||
$cssConverter = new CssConverter();
|
||||
|
||||
$this->svgDrawer = new SvgDrawer($myPdf, $cssConverter);
|
||||
}
|
||||
}
|
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php
vendored
Normal file
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/TagParserTestCase.php
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\TagParser;
|
||||
|
||||
abstract class TagParserTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var TagParser
|
||||
*/
|
||||
protected $parser;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$textParser = $this->getMockBuilder('Spipu\Html2Pdf\Parsing\TextParser')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['prepareTxt'])
|
||||
->getMock();
|
||||
|
||||
$textParser
|
||||
->expects($this->any())
|
||||
->method('prepareTxt')
|
||||
->will($this->returnCallback([$this, 'mockPrepareTxt']));
|
||||
|
||||
$this->parser = new TagParser($textParser);
|
||||
}
|
||||
}
|
29
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php
vendored
Normal file
29
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/TextParserTestCase.php
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\TextParser;
|
||||
|
||||
abstract class TextParserTestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var TextParser
|
||||
*/
|
||||
protected $parser;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->parser = new TextParser();
|
||||
}
|
||||
}
|
40
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php
vendored
Normal file
40
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\Html2Pdf;
|
||||
|
||||
abstract class AbstractTestCase extends TestCase
|
||||
{
|
||||
use AssertContains;
|
||||
|
||||
/**
|
||||
* @var Html2Pdf
|
||||
*/
|
||||
protected $html2pdf;
|
||||
|
||||
/**
|
||||
* Executed before each test
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->html2pdf = new Html2Pdf('P', 'A4', 'fr', true, 'UTF-8', [0, 0, 0, 0]);
|
||||
$this->html2pdf->pdf->SetTitle('PhpUnit Test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Executed after each test
|
||||
*/
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->html2pdf->clean();
|
||||
$this->html2pdf = null;
|
||||
}
|
||||
|
||||
public function expectExceptionMessage($message, $exception = null): void
|
||||
{
|
||||
// Yes, we ignore $exception
|
||||
parent::expectExceptionMessage($message);
|
||||
}
|
||||
}
|
15
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php
vendored
Normal file
15
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/AssertContains.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
trait AssertContains
|
||||
{
|
||||
public static function assertContains($needle, $haystack, string $message = ''): void
|
||||
{
|
||||
if (is_string($haystack)) {
|
||||
parent::assertStringContainsString($needle, $haystack, $message);
|
||||
} else {
|
||||
parent::assertContains($needle, $haystack, $message);
|
||||
}
|
||||
}
|
||||
}
|
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php
vendored
Normal file
19
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/CssConverterTestCase.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\CssConverter;
|
||||
|
||||
abstract class CssConverterTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var CssConverter
|
||||
*/
|
||||
protected $cssConverter;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->cssConverter = new CssConverter();
|
||||
}
|
||||
}
|
20
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php
vendored
Normal file
20
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/ExceptionFormatterTestCase.php
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
abstract class ExceptionFormatterTestCase extends TestCase
|
||||
{
|
||||
use AssertContains;
|
||||
}
|
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php
vendored
Normal file
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/HtmlTestCase.php
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\Html;
|
||||
|
||||
abstract class HtmlTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var Html
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$textParser = $this->getMockBuilder('Spipu\Html2Pdf\Parsing\TextParser')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['prepareTxt'])
|
||||
->getMock();
|
||||
|
||||
$textParser
|
||||
->expects($this->any())
|
||||
->method('prepareTxt')
|
||||
->willReturnCallback([$this, 'mockPrepareTxt']);
|
||||
|
||||
$this->object = new Html($textParser);
|
||||
}
|
||||
}
|
24
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php
vendored
Normal file
24
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/SvgDrawerTestCase.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\CssConverter;
|
||||
use Spipu\Html2Pdf\SvgDrawer;
|
||||
|
||||
abstract class SvgDrawerTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var SvgDrawer
|
||||
*/
|
||||
protected $svgDrawer;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$myPdf = $this->createMock('Spipu\Html2Pdf\MyPdf');
|
||||
|
||||
$cssConverter = new CssConverter();
|
||||
|
||||
$this->svgDrawer = new SvgDrawer($myPdf, $cssConverter);
|
||||
}
|
||||
}
|
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php
vendored
Normal file
39
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/TagParserTestCase.php
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\TagParser;
|
||||
|
||||
abstract class TagParserTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var TagParser
|
||||
*/
|
||||
protected $parser;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$textParser = $this->getMockBuilder('Spipu\Html2Pdf\Parsing\TextParser')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['prepareTxt'])
|
||||
->getMock();
|
||||
|
||||
$textParser
|
||||
->expects($this->any())
|
||||
->method('prepareTxt')
|
||||
->willReturnCallback([$this, 'mockPrepareTxt']);
|
||||
|
||||
$this->parser = new TagParser($textParser);
|
||||
}
|
||||
}
|
29
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php
vendored
Normal file
29
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/TextParserTestCase.php
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\TextParser;
|
||||
|
||||
abstract class TextParserTestCase extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var TextParser
|
||||
*/
|
||||
protected $parser;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->parser = new TextParser();
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/SvgDrawerTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/SvgDrawerTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class SvgDrawerTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\SvgDrawerTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class SvgDrawerTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\SvgDrawerTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/TagParserTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/TagParserTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class TagParserTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\TagParserTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class TagParserTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\TagParserTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/TextParserTestCase.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/TextParserTestCase.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\CrossVersionCompatibility;
|
||||
|
||||
if (HTML2PDF_PHPUNIT_VERSION === 9) {
|
||||
abstract class TextParserTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit9\TextParserTestCase
|
||||
{
|
||||
}
|
||||
} else {
|
||||
abstract class TextParserTestCase extends \Spipu\Html2Pdf\Tests\CrossVersionCompatibility\PhpUnit5\TextParserTestCase
|
||||
{
|
||||
}
|
||||
}
|
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/bootstrap.php
vendored
Normal file
13
vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/bootstrap.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
if (!class_exists('PHPUnit_Framework_TestCase') && version_compare(phpversion(), '7.1') >= 0) {
|
||||
class PHPUnit_Framework_TestCase extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
}
|
||||
|
||||
define('HTML2PDF_PHPUNIT_VERSION', 9);
|
||||
} else {
|
||||
define('HTML2PDF_PHPUNIT_VERSION', 5);
|
||||
}
|
Reference in New Issue
Block a user