Skip to content

Commit

Permalink
Require phpspec/prophecy as dev dependency
Browse files Browse the repository at this point in the history
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 php-mock#50
  • Loading branch information
athos-ribeiro committed Sep 6, 2022
1 parent 3f7dc36 commit b96decb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -24,5 +24,8 @@
},
"archive": {
"exclude": ["/tests"]
},
"require-dev": {
"phpspec/prophecy": "^1.15"
}
}

0 comments on commit b96decb

Please sign in to comment.