Skip to content

Commit eb0f584

Browse files
committed
Addressing phpunit changes between v10 and 12.
1 parent f2002db commit eb0f584

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/workflows/Unit_Tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ jobs:
4545
env:
4646
XDEBUG_MODE: coverage
4747
run: ./vendor/bin/phpunit -c phpunit.xml --coverage-clover clover.xml
48-
if: (!contains(matrix.php-versions, '7.')) && (matrix.php-versions != '8.0')
48+
if: (matrix.php-versions == '8.1')
49+
50+
- name: Tests (PHPUnit Latest)
51+
env:
52+
XDEBUG_MODE: coverage
53+
run: ./vendor/bin/phpunit -c phpunit.xml --coverage-clover clover.xml
54+
if: (!contains(matrix.php-versions, '7.')) && (matrix.php-versions != '8.0') && (matrix.php-versions != '8.1')
4955

5056
- name: Coveralls Test Submission
5157
if: ${{ github.ref == 'refs/heads/master' }}

docs

Submodule docs updated from c9a7331 to 9aee15b

phpunit.10.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
4+
bootstrap="vendor/autoload.php" executionOrder="depends,defects"
5+
beStrictAboutOutputDuringTests="true"
6+
beStrictAboutTodoAnnotatedTests="true"
7+
beStrictAboutTestsThatDoNotTestAnything="false"
8+
colors="true"
9+
displayDetailsOnTestsThatTriggerDeprecations="true"
10+
displayDetailsOnTestsThatTriggerErrors="true"
11+
displayDetailsOnTestsThatTriggerNotices="true"
12+
displayDetailsOnTestsThatTriggerWarnings="true"
13+
failOnDeprecation="true"
14+
failOnNotice="true"
15+
failOnRisky="true"
16+
failOnWarning="true">
17+
<testsuites>
18+
<testsuite name="default">
19+
<directory suffix="Tests.php">tests</directory>
20+
</testsuite>
21+
</testsuites>
22+
<coverage pathCoverage="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"/>
23+
<source>
24+
<include>
25+
<directory>src</directory>
26+
</include>
27+
</source>
28+
</phpunit>

0 commit comments

Comments
 (0)