Completed
Push — master ( b587fb...d05392 )
by David
20:34
created

Guzzle6FactoryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateClient() 0 11 2
1
<?php
2
3
namespace Http\HttplugBundle\Tests\Unit\ClientFactory;
4
5
use Http\HttplugBundle\ClientFactory\Guzzle6Factory;
6
use Http\Adapter\Guzzle6\Client;
7
use PHPUnit\Framework\TestCase;
8
9
/**
10
 * @author Tobias Nyholm <[email protected]>
11
 */
12
class Guzzle6FactoryTest extends TestCase
13
{
14
    public function testCreateClient()
15
    {
16
        if (!class_exists(\Http\Adapter\Guzzle6\Client::class)) {
17
            $this->markTestSkipped('Guzzle6 adapter is not installed');
18
        }
19
20
        $factory = new Guzzle6Factory();
21
        $client = $factory->createClient();
22
23
        $this->assertInstanceOf(Client::class, $client);
24
    }
25
}
26