diff --git a/.gitattributes b/.gitattributes index aa7854a..da20d18 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,4 +3,5 @@ /.gitignore export-ignore /examples/ export-ignore /phpunit.xml.dist export-ignore +/phpunit.xml.legacy export-ignore /tests/ export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3558c27..38ed72e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,9 @@ jobs: php-version: ${{ matrix.php }} - run: composer install - run: vendor/bin/phpunit --coverage-text + if: ${{ matrix.php >= 7.3 }} + - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy + if: ${{ matrix.php < 7.3 }} PHPUnit-hhvm: name: PHPUnit (HHVM) @@ -38,4 +41,4 @@ jobs: with: version: lts-3.30 - run: hhvm $(which composer) install - - run: hhvm vendor/bin/phpunit --coverage-text + - run: hhvm vendor/bin/phpunit diff --git a/composer.json b/composer.json index b190291..f51b9bb 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ }, "require-dev": { "clue/hexdump": "0.2.*", - "phpunit/phpunit": "^9.0 ||^6.0 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^9.3 ||^6.0 || ^5.7 || ^4.8.35" }, "suggest": { "ext-sockets": "Requires PHP 5.4+ and the low level socket API for listening on multicast addresses (socket options to send IGMP announcements)" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f80bbaa..ccf39fc 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,14 +1,19 @@ - + + - + ./tests/ - - + + ./src/ - - - \ No newline at end of file + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy new file mode 100644 index 0000000..663909e --- /dev/null +++ b/phpunit.xml.legacy @@ -0,0 +1,18 @@ + + + + + + + ./tests/ + + + + + ./src/ + + +