Skip to content

Commit a918de1

Browse files
committed
Update PHPUnit configuration: upgrade schema to 12.5, enforce stricter checks
1 parent 9ba732e commit a918de1

2 files changed

Lines changed: 22 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ jobs:
3434
run: COMPOSER_MEMORY_LIMIT=-1 composer install --dev --no-interaction
3535

3636
- name: Run tests
37-
run: |
38-
php vendor/bin/phpunit
37+
run: composer run unit-tests

phpunit.xml.dist

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="tests/bootstrap.php">
3-
<php>
4-
<ini name="error_reporting" value="-1"/>
5-
<ini name="display_errors" value="1"/>
6-
<ini name="display_startup_errors" value="1"/>
7-
</php>
8-
<testsuites>
9-
<testsuite name="Unit Tests">
10-
<directory>./tests</directory>
11-
<exclude>./tests/Fixtures</exclude>
12-
</testsuite>
13-
</testsuites>
14-
<logging/>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.5/phpunit.xsd"
5+
bootstrap="tests/bootstrap.php"
6+
colors="true"
7+
failOnWarning="true"
8+
failOnRisky="true"
9+
beStrictAboutTestsThatDoNotTestAnything="true"
10+
>
11+
<php>
12+
<ini name="error_reporting" value="-1"/>
13+
<ini name="display_errors" value="1"/>
14+
<ini name="display_startup_errors" value="1"/>
15+
</php>
16+
17+
<testsuites>
18+
<testsuite name="Unit Tests">
19+
<directory>tests</directory>
20+
<exclude>tests/Fixtures</exclude>
21+
</testsuite>
22+
</testsuites>
1523
</phpunit>

0 commit comments

Comments
 (0)