Completed
Pull Request — master (#5)
by Jean-Baptiste
04:36
created

GuzzleFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateGuzzleReturnsInitializedInstanceOfAbstractGuzzle() 0 8 1
1
<?php
2
3
namespace CanalTP\AbstractGuzzle\Tests;
4
5
use CanalTP\AbstractGuzzle\GuzzleFactory;
6
7
class GuzzleFactoryTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testCreateGuzzleReturnsInitializedInstanceOfAbstractGuzzle()
10
    {
11
        $baseUri = 'http://my-base-url.tld';
12
        $guzzle = GuzzleFactory::createGuzzle($baseUri);
0 ignored issues
show
Bug introduced by
The call to createGuzzle() misses a required argument $options.

This check looks for function calls that miss required arguments.

Loading history...
13
14
        $this->assertInstanceOf('CanalTP\\AbstractGuzzle\\Guzzle', $guzzle);
15
        $this->assertEquals($baseUri, $guzzle->getBaseUri());
16
    }
17
}
18