From b9ba2db21e7e1c7deba98bc86dcfc6425fb4647d Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Wed, 7 Sep 2022 17:40:07 -0300 Subject: [PATCH] Require phpspec/prophecy as dev dependency (#51) * Require phpspec/prophecy as dev dependency https://github.com/sebastianbergmann/phpunit/issues/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 --- .github/workflows/tests.yml | 2 +- composer.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3c59690..83dbe1e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/composer.json b/composer.json index 406f8cb..ef911d4 100644 --- a/composer.json +++ b/composer.json @@ -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"] }