source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Tests/Image/BackgroundOkTest.php@ 418

Last change on this file since 418 was 347, checked in by roby, 4 years ago

Aggiornamento per compatibilità con php7.4

File size: 779 bytes
Line 
1<?php
2/**
3 * Html2Pdf Library - Tests
4 *
5 * HTML => PDF converter
6 * distributed under the OSL-3.0 License
7 *
8 * @package Html2pdf
9 * @author Laurent MINGUET <webmaster@html2pdf.fr>
10 * @copyright 2017 Laurent MINGUET
11 */
12
13namespace Spipu\Html2Pdf\Tests\Image;
14
15use Spipu\Html2Pdf\Tests\AbstractTest;
16
17/**
18 * Class BackgroundOkTest
19 */
20class BackgroundOkTest extends AbstractTest
21{
22 /**
23 * test: The image src is unknown
24 *
25 * @return void
26 */
27 public function testCase()
28 {
29 $object = $this->getObject();
30 $object->writeHTML('<div style="background-image: url('.dirname(__FILE__).'/res/logo.png)">Hello World</div>');
31 $result = $object->output('test.pdf', 'S');
32
33 $this->assertContains('PhpUnit Test', $result);
34 }
35}
Note: See TracBrowser for help on using the repository browser.