Skip to content

Commit 2188fed

Browse files
committed
minor: adjust dev deps
1 parent fc62bde commit 2188fed

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
},
2222
"require-dev": {
2323
"lorisleiva/cron-translator": "^0.1.0|^0.3.1|^0.4.0",
24-
"matthiasnoback/symfony-dependency-injection-test": "^4.1|^5.0",
24+
"matthiasnoback/symfony-dependency-injection-test": "^4.1|^5.0|^6.0",
2525
"phpstan/phpstan": "^1.4",
26-
"phpunit/phpunit": "^9.5",
26+
"phpunit/phpunit": "^9.5|^10.0",
2727
"psr/log": "^1.1",
2828
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
2929
"symfony/http-client": "^6.4|^7.0|^8.0",

tests/Schedule/Extension/PingExtensionTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Zenstruck\ScheduleBundle\Tests\Schedule\Extension;
1313

14+
use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Contracts\HttpClient\HttpClientInterface;
1617
use Zenstruck\ScheduleBundle\Schedule;
@@ -30,6 +31,11 @@ final class PingExtensionTest extends TestCase
3031
*/
3132
public function success_webhooks_are_pinged()
3233
{
34+
// todo find better solution
35+
if (!\method_exists(InvocationMocker::class, 'withConsecutive')) {
36+
$this->markTestSkipped('Requires PHPUnit 9');
37+
}
38+
3339
$client = $this->createMock(HttpClientInterface::class);
3440
$client->expects($this->exactly(6))->method('request')->withConsecutive(
3541
[$this->equalTo('GET'), $this->equalTo('schedule-before.com'), $this->isType('array')],
@@ -52,6 +58,11 @@ public function success_webhooks_are_pinged()
5258
*/
5359
public function failure_webhooks_are_pinged()
5460
{
61+
// todo find better solution
62+
if (!\method_exists(InvocationMocker::class, 'withConsecutive')) {
63+
$this->markTestSkipped('Requires PHPUnit 9');
64+
}
65+
5566
$client = $this->createMock(HttpClientInterface::class);
5667
$client->expects($this->exactly(6))->method('request')->withConsecutive(
5768
[$this->equalTo('GET'), $this->equalTo('schedule-before.com'), $this->isType('array')],

0 commit comments

Comments
 (0)