Skip to content

Commit

Permalink
Require phpspec/prophecy as dev dependency (#51)
Browse files Browse the repository at this point in the history
* Require phpspec/prophecy as dev dependency

sebastianbergmann/phpunit#5033 changed phpunit
to no longer depend on phpspec/prophecy. This results in the need to add
a development dependency for phpspec/prophecy. Doing so results in a
warning, since PHPUnit\Framework\TestCase::prophesize() is deprecated
and will be removed in PHPUnit 10. While we could use the trait provided
by phpspec/prophecy-phpunit instead, it would break PHP < 7.3 support.

* Closes #50
  • Loading branch information
athos-ribeiro committed Sep 7, 2022
1 parent 3f7dc36 commit b9ba2db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -243,7 +243,7 @@ jobs:
name: PHPUnit ${{ matrix.phpunit-version }} on PHP ${{ matrix.php-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -22,6 +22,9 @@
"phpunit/phpunit": "^6 || ^7 || ^8 || ^9",
"php-mock/php-mock-integration": "^2.1"
},
"require-dev": {
"phpspec/prophecy": "^1.10.3"
},
"archive": {
"exclude": ["/tests"]
}
Expand Down

0 comments on commit b9ba2db

Please sign in to comment.