html2pdf mit composer hinzugefügt
This commit is contained in:
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user