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

testCreateGuzzleReturnsInitializedInstanceOfAbstractGuzzle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
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