Skip to content

Commit

Permalink
feat: update to allow usage with PHP 8
Browse files Browse the repository at this point in the history
- Adds `~8.0.0` to PHP constraint
- Makes minimum supported PHP version 7.3
- Updates PHPUnit version to 9.3, php-mock-phpunit to 2.0, and vfsStream to 1.6.7
  - Updates phpunit.xml.dist to 9.3 schema
  - Updates unit tests to work with PHPUnit 9.3
  - Removes all prophecy usage in favor of phpunit mock objects

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Mar 22, 2021
1 parent 4d82d9e commit 1bd4706
Show file tree
Hide file tree
Showing 10 changed files with 909 additions and 524 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/phpunit.xml
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
"extra": {
},
"require": {
"php": "^5.6 || ^7.0",
"php": "^7.3 || ~8.0.0",
"laminas/laminas-stdlib": "^3.1",
"laminas/laminas-zendframework-bridge": "^1.0"
},
"require-dev": {
"laminas/laminas-coding-standard": "~1.0.0",
"mikey179/vfsstream": "^1.6.4",
"mockery/mockery": "^1.0",
"php-mock/php-mock-phpunit": "^1.1.2 || ^2.0",
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5"
"mikey179/vfsstream": "^1.6.7",
"mockery/mockery": "^1.4.1",
"php-mock/php-mock-phpunit": "^2.0",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 1bd4706

Please sign in to comment.