diff --git a/docs/changes/1.x/1.5.0.md b/docs/changes/1.x/1.5.0.md index b96865bada..ad49fea2e6 100644 --- a/docs/changes/1.x/1.5.0.md +++ b/docs/changes/1.x/1.5.0.md @@ -11,9 +11,10 @@ ### Miscellaneous - Update phpstan/phpstan requirement from ^0.12.88 || ^1.0.0 to ^0.12.88 || ^1.0.0 || ^2.0.0 by [@dependabot](https://github.com/dependabot) & [@Progi1984](https://github.com/Progi1984) in [#2736](https://github.com/PHPOffice/PHPWord/pull/2736) +- Created visual test suite to ensure all parts of styles are working as expected, by [@rasamassen](https://github.com/rasamassen) in [#2849](https://github.com/PHPOffice/PHPWord/pull/2849) ### Deprecations ### BC Breaks -### Notes \ No newline at end of file +### Notes diff --git a/samples/Sample_Header.php b/samples/Sample_Header.php index 57bb10a4c6..7812357612 100644 --- a/samples/Sample_Header.php +++ b/samples/Sample_Header.php @@ -54,6 +54,7 @@ // Populate samples $files = ''; +$testFiles = ''; if ($handle = opendir('.')) { $sampleFiles = []; while (false !== ($sampleFile = readdir($handle))) { @@ -67,6 +68,10 @@ $name = str_replace('_', ' ', preg_replace('/(Sample_|\.php)/', '', $file)); $files .= "
  • {$name}
  • "; } + if (preg_match('/^TestSuite_/', $file)) { + $name = str_replace('_', ' ', preg_replace('/(TestSuite_|\.php)/', '', $file)); + $testFiles .= "
  • {$name}
  • "; + } } } @@ -164,6 +169,12 @@ function getEndingNotes(array $writers, string $filename): string +