From b96decba39c9706876f2071d9d7804efe2cb0fb8 Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Tue, 6 Sep 2022 09:13:16 -0300 Subject: [PATCH 1/4] 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 --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 406f8cb..36a1bec 100644 --- a/composer.json +++ b/composer.json @@ -24,5 +24,8 @@ }, "archive": { "exclude": ["/tests"] + }, + "require-dev": { + "phpspec/prophecy": "^1.15" } } From f53be6de5b938d34d57cbe3220b7fab8999e6817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bundyra?= Date: Wed, 7 Sep 2022 21:11:29 +0100 Subject: [PATCH 2/4] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 36a1bec..d7a9486 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,10 @@ "phpunit/phpunit": "^6 || ^7 || ^8 || ^9", "php-mock/php-mock-integration": "^2.1" }, - "archive": { - "exclude": ["/tests"] - }, "require-dev": { "phpspec/prophecy": "^1.15" + }, + "archive": { + "exclude": ["/tests"] } } From 8bf7e2c652a74494b1aad2df2ecd406bba4e5720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bundyra?= Date: Wed, 7 Sep 2022 21:29:31 +0100 Subject: [PATCH 3/4] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 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 }} From 7fa7659ac65c2a049608db6ed0fb772d4f265145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bundyra?= Date: Wed, 7 Sep 2022 21:38:45 +0100 Subject: [PATCH 4/4] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d7a9486..ef911d4 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php-mock/php-mock-integration": "^2.1" }, "require-dev": { - "phpspec/prophecy": "^1.15" + "phpspec/prophecy": "^1.10.3" }, "archive": { "exclude": ["/tests"]