Skip to content

Commit

Permalink
Use dedicated configuration to handle new PHPUnit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Feb 6, 2024
1 parent 0c0deb2 commit e426d79
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:
php: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
min_stability: ['']
name_suffix: ['']
phpunit_configuration: ['phpunit.xml.dist']
include:
- php: '8.3'
min_stability: 'dev'
name_suffix: ' (dev deps)'
phpunit_configuration: 'phpunit.10.5+.xml.dist'

name: PHP ${{ matrix.php }}${{ matrix.name_suffix }}

Expand All @@ -63,4 +65,4 @@ jobs:
run: composer install --ansi --no-interaction --no-progress

- name: Execute Unit Tests
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text --configuration ${{ matrix.phpunit_configuration }}
18 changes: 18 additions & 0 deletions phpunit.10.5+.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResult="false"
colors="true"
>
<testsuites>
<testsuite name="Prophecy PhpUnit Test Suite">
<directory suffix=".phpt">./tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>

0 comments on commit e426d79

Please sign in to comment.