This commit is contained in:
Javier Garcia 2018-05-23 18:35:12 +02:00
parent 58c6c52ee9
commit d54cc6efee
2 changed files with 8 additions and 2 deletions

View File

@ -11,5 +11,11 @@
<ul><li>Item 1</li><li>Item 2</li><ul><li>Item 2.1</li><li>Item 2.1</li></ul></ul> <ul><li>Item 1</li><li>Item 2</li><ul><li>Item 2.1</li><li>Item 2.1</li></ul></ul>
<p>Ordered (numbered) list:</p> <p>Ordered (numbered) list:</p>
<ol><li>Item 1</li><li>Item 2</li></ol> <ol><li>Item 1</li><li>Item 2</li></ol>
<p style="line-height:2">Double height</p>
<h2>Includes images</h2>
<img src="https://phpword.readthedocs.io/en/latest/_images/phpword.png" alt=""/>
</body> </body>
</html> </html>

View File

@ -485,10 +485,10 @@ class HtmlTest extends \PHPUnit\Framework\TestCase
{ {
$src = 'https://fakedomain.io/images/firefox.png'; $src = 'https://fakedomain.io/images/firefox.png';
$localPath = __DIR__ . '/../_files/images/'; $localPath = __DIR__ . '/../_files/images/';
$options= [ $options= array(
'IMG_SRC_SEARCH'=> 'https://fakedomain.io/images/', 'IMG_SRC_SEARCH'=> 'https://fakedomain.io/images/',
'IMG_SRC_REPLACE'=> $localPath 'IMG_SRC_REPLACE'=> $localPath
]; );
$phpWord = new \PhpOffice\PhpWord\PhpWord(); $phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection(); $section = $phpWord->addSection();