html2pdf mit composer hinzugefügt
This commit is contained in:
35
vendor/spipu/html2pdf/Tests/Image/BackgroundOkTest.php
vendored
Normal file
35
vendor/spipu/html2pdf/Tests/Image/BackgroundOkTest.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?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\Image;
|
||||
|
||||
use Spipu\Html2Pdf\Tests\AbstractTest;
|
||||
|
||||
/**
|
||||
* Class BackgroundOkTest
|
||||
*/
|
||||
class BackgroundOkTest extends AbstractTest
|
||||
{
|
||||
/**
|
||||
* test: The image src is unknown
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testCase()
|
||||
{
|
||||
$object = $this->getObject();
|
||||
$object->writeHTML('<div style="background-image: url('.dirname(__FILE__).'/res/logo.png)">Hello World</div>');
|
||||
$result = $object->output('test.pdf', 'S');
|
||||
|
||||
$this->assertContains('PhpUnit Test', $result);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user