We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554350d commit 49a7a01Copy full SHA for 49a7a01
tests/Unit/QueueTest.php
@@ -45,12 +45,10 @@ public function provideConstructorInvalidArgumentData() : iterable
45
46
public function testGetName() : void
47
{
48
- if (!class_exists(Client::class)) {
49
- $this->markTestSkipped('The tarantool\client package is not installed.');
50
- }
51
-
52
- /** @var Client|MockObject $client */
53
- $client = $this->createMock(Client::class);
+ /** @var \Tarantool|Client|MockObject $client */
+ $client = class_exists(\Tarantool::class, false)
+ ? $this->createMock(\Tarantool::class)
+ : $this->createMock(Client::class);
54
55
$queueName = uniqid('queue_', true);
56
$queue = new Queue($client, $queueName);
0 commit comments