Skip to content

Commit 554350d

Browse files
committed
Skip a test if tarantool/client is not installed
1 parent ac21315 commit 554350d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Unit/QueueTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public function provideConstructorInvalidArgumentData() : iterable
4545

4646
public function testGetName() : void
4747
{
48+
if (!class_exists(Client::class)) {
49+
$this->markTestSkipped('The tarantool\client package is not installed.');
50+
}
51+
4852
/** @var Client|MockObject $client */
4953
$client = $this->createMock(Client::class);
5054

0 commit comments

Comments
 (0)