source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Tests/Tag/TdTooLongTest.php@ 347

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

Aggiornamento per compatibilità con php7.4

File size: 898 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\Tag;
14
15use Spipu\Html2Pdf\Html2Pdf;
16use Spipu\Html2Pdf\Tests\AbstractTest;
17
18/**
19 * Class TdTooLongTest
20 */
21class TdTooLongTest extends AbstractTest
22{
23 /**
24 * test
25 *
26 * @return void
27 * @expectedException \Spipu\Html2Pdf\Exception\TableException
28 */
29 public function testCase()
30 {
31 $sentence = 'Hello World ! ';
32 $sentences = '';
33 for ($k=0; $k<100; $k++) {
34 $sentences.= $sentence;
35 }
36
37 $object = $this->getObject();
38 $object->writeHTML('<table><tr><td style="width: 28mm">'.$sentences.'</td></tr></table>');
39 $object->output('test.pdf', 'S');
40 }
41}
Note: See TracBrowser for help on using the repository browser.