Skip to content

Commit

Permalink
Updated to use PHPUnit 10 (#248)
Browse files Browse the repository at this point in the history
* Updated to use PHPUnit 10

* Updated providers to be static, but still need to figure out what to do with statically-created mocks

* Removed used of PHPUnit mocking in static data providers

* Removed verbose flag on PHPUnit Composer script since it appears to no longer be supported
  • Loading branch information
davidbyoung committed Feb 4, 2023
1 parent 25bc266 commit 8efd0b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/
.php-cs-fixer.cache
.phpunit.result.cache
.phpunit.cache
composer.lock
composer.phar
nbproject/
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.5",
"phpunit/phpunit": "~9.5"
"phpunit/phpunit": "^10.0"
},
"scripts": {
"phpcs-test": "@phpcs-fix --dry-run",
"phpcs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --diff",
"phpunit": "php vendor/phpunit/phpunit/phpunit --coverage-clover ./.coverage/clover.xml --verbose",
"phpunit": "php vendor/phpunit/phpunit/phpunit --coverage-clover ./.coverage/clover.xml",
"test": [
"@phpunit",
"@phpcs-test"
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src</directory>
Expand Down

0 comments on commit 8efd0b6

Please sign in to comment.