Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/Unit_Tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Unit Tests

on:
pull_request: null
push:
branches:
- master
# pull_request: null
push: null

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php-versions }} Tests
steps:
Expand Down Expand Up @@ -44,12 +42,25 @@ jobs:
if: (matrix.php-versions == '7.3') || (matrix.php-versions == '7.4') || (matrix.php-versions == '8.0')

- name: Tests (PHPUnit 10)
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/phpunit -c phpunit.10.xml --coverage-clover clover.xml
if: (matrix.php-versions == '8.1')

- name: Tests (PHPUnit 11)
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/phpunit -c phpunit.11.xml --coverage-clover clover.xml
if: (matrix.php-versions == '8.2')

- name: Tests (PHPUnit Latest)
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/phpunit -c phpunit.xml --coverage-clover clover.xml
if: (!contains(matrix.php-versions, '7.')) && (matrix.php-versions != '8.0')
if: (matrix.php-versions > 8.2)

- name: Coveralls Test Submission
if: ${{ github.ref == 'refs/heads/master' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
Expand All @@ -58,6 +69,7 @@ jobs:

finish:
name: Close Coveralls Run
if: ${{ github.ref == 'refs/heads/master' }}
needs: tests
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from c9a733 to 9aee15
28 changes: 28 additions & 0 deletions phpunit.10.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
bootstrap="vendor/autoload.php" executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
failOnDeprecation="true"
failOnNotice="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory suffix="Tests.php">tests</directory>
</testsuite>
</testsuites>
<coverage pathCoverage="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"/>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
29 changes: 29 additions & 0 deletions phpunit.11.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnPhpunitDeprecations="true"
failOnDeprecation="true"
failOnNotice="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory suffix="Tests.php">tests</directory>
</testsuite>
</testsuites>
<coverage pathCoverage="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"/>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
11 changes: 6 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
bootstrap="vendor/autoload.php" executionOrder="depends,defects"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnPhpunitDeprecations="true"
failOnDeprecation="true"
failOnNotice="true"
failOnRisky="true"
Expand All @@ -19,10 +20,10 @@
<directory suffix="Tests.php">tests</directory>
</testsuite>
</testsuites>
<coverage includeUncoveredFiles="true" pathCoverage="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"/>
<coverage pathCoverage="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"/>
<source>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</source>
</phpunit>