Skip to content

Commit 8e6726c

Browse files
committed
Try to Catch Up
1 parent 1bcee8e commit 8e6726c

13 files changed

+19
-9
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"phpmd/phpmd": "^2.13",
123123
"phpstan/phpstan": "^0.12.88 || ^1.0.0",
124124
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
125-
"phpunit/phpunit": ">=7.0",
125+
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.0",
126126
"symfony/process": "^4.4 || ^5.0",
127127
"tecnickcom/tcpdf": "^6.5"
128128
},

src/PhpWord/Shared/Html.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ protected static function parseChildNodes($node, $element, $styles, $data): void
417417
* @param AbstractContainer $element
418418
* @param array &$styles
419419
*
420-
* @return \PhpOffice\PhpWord\Element\PageBreak|\PhpOffice\PhpWord\Element\TextRun
420+
* @return \PhpOffice\PhpWord\Element\PageBreak|TextRun
421421
*/
422422
protected static function parseParagraph($node, $element, &$styles)
423423
{
@@ -590,7 +590,7 @@ protected static function parseRow($node, $element, &$styles)
590590
* @param Table $element
591591
* @param array &$styles
592592
*
593-
* @return \PhpOffice\PhpWord\Element\Cell|\PhpOffice\PhpWord\Element\TextRun $element
593+
* @return \PhpOffice\PhpWord\Element\Cell|TextRun $element
594594
*/
595595
protected static function parseCell($node, $element, &$styles)
596596
{

src/PhpWord/SimpleType/TextDirection.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Reader/Html/CharsetTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Reader/Word2007/StyleTableTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/SettingsRtlTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Shared/Html2402Test.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Shared/HtmlFullTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Shared/HtmlHeadingsTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Shared/HtmlRtlTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.
@@ -23,15 +24,15 @@
2324
use PhpOffice\PhpWord\Shared\Html;
2425
use PhpOffice\PhpWord\Style\Font;
2526
use PhpOffice\PhpWord\Style\Paragraph;
26-
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
27+
use PhpOffice\PhpWordTests\AbstractWebServerEmbedded;
2728
use PhpOffice\PhpWordTests\TestHelperDOCX;
2829

2930
/**
3031
* Test class for PhpOffice\PhpWord\Shared\Html.
3132
*
3233
* @coversDefaultClass \PhpOffice\PhpWord\Shared\Html
3334
*/
34-
class HtmlRtlTest extends AbstractWebServerEmbeddedTest
35+
class HtmlRtlTest extends AbstractWebServerEmbedded
3536
{
3637
/**
3738
* Tear down after each test.

tests/PhpWordTests/Shared/HtmlTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function testParseTableAndCellWidth(): void
479479
{
480480
$phpWord = new PhpWord();
481481
$section = $phpWord->addSection([
482-
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
482+
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
483483
]);
484484

485485
// borders & backgrounds are here just for better visual comparison
@@ -548,7 +548,7 @@ public function testParseTableRowHeight(): void
548548
{
549549
$phpWord = new PhpWord();
550550
$section = $phpWord->addSection([
551-
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
551+
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
552552
]);
553553

554554
$html = <<<HTML
@@ -629,7 +629,7 @@ public function testParseTableCellspacingRowBgColor(): void
629629
{
630630
$phpWord = new PhpWord();
631631
$section = $phpWord->addSection([
632-
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
632+
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
633633
]);
634634

635635
// borders & backgrounds are here just for better visual comparison
@@ -670,7 +670,7 @@ public function testParseTableStyleAttributeInlineStyle(): void
670670
{
671671
$phpWord = new PhpWord();
672672
$section = $phpWord->addSection([
673-
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
673+
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
674674
]);
675675

676676
$html = '<table style="background-color:red;width:100%;" bgColor="lightgreen" width="50%">

tests/PhpWordTests/TemplateProcessorSectionTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

tests/PhpWordTests/Writer/RTF/RichTextTitleTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of PHPWord - A pure PHP library for reading and writing
45
* word processing documents.

0 commit comments

Comments
 (0)