Completed
Push — master ( 1e9a17...80ace9 )
by David
11:17
created

Guzzle7FactoryTest::testCreateClient()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Http\HttplugBundle\Tests\Unit\ClientFactory;
6
7
use Http\Adapter\Guzzle7\Client;
8
use Http\HttplugBundle\ClientFactory\Guzzle7Factory;
9
use PHPUnit\Framework\TestCase;
10
11
/**
12
 * @author Tobias Nyholm <[email protected]>
13
 */
14
class Guzzle7FactoryTest extends TestCase
15
{
16
    public function testCreateClient(): void
17
    {
18
        if (!class_exists(Client::class)) {
19
            $this->markTestSkipped('Guzzle7 adapter is not installed');
20
        }
21
22
        $factory = new Guzzle7Factory();
23
        $client = $factory->createClient();
24
25
        $this->assertInstanceOf(Client::class, $client);
26
    }
27
}
28