Skip to content

Commit

Permalink
Eliminate Coverage Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Oct 22, 2023
1 parent c111124 commit 117c8ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,3 @@ jobs:
- name: Coverage
run: |
./vendor/bin/phpunit --coverage-clover coverage-clover.xml
curl -LO https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml
8 changes: 7 additions & 1 deletion tests/PhpWordTests/Writer/Word2007/Part/DocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,13 @@ public function testWriteImage(): void
// behind
$element = $doc->getElement('/w:document/w:body/w:p[2]/w:r/w:pict/v:shape');
$style = $element->getAttribute('style');
self::assertRegExp('/z\-index:\-[0-9]*/', $style);
if (method_exists(self::class, 'assertMatchesRegularExpression')) {
self::assertMatchesRegularExpression('/z\-index:\-[0-9]*/', $style);
} elseif (method_exists(self::class, 'assertRegExp')) {
self::assertRegExp('/z\-index:\-[0-9]*/', $style);
} else {
self::fail('Unsure how to test regexp');
}

// square
$element = $doc->getElement('/w:document/w:body/w:p[4]/w:r/w:pict/v:shape/w10:wrap');
Expand Down

0 comments on commit 117c8ea

Please sign in to comment.