Completed
Push — master ( c63a1e...16915a )
by François
03:48
created

HttpClientTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetUserAgent() 0 11 1
1
<?php
2
3
/*
4
 * This file is part of the Bouncer package.
5
 *
6
 * (c) François Hodierne <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bouncer;
13
14
class HttpClientTest extends \PHPUnit_Framework_TestCase
15
{
16
17
    public function testGetUserAgent()
18
    {
19
        $options = array(
20
          'apiKey'  => 'b3bb90d61e80e96259bf354fd7cb03d7',
21
          'siteUrl' => 'https://github.com/znarf/bouncer',
22
        );
23
24
        $client = new \Bouncer\Http\SimpleClient($options);
25
26
        $this->assertEquals('Bouncer Http; https://github.com/znarf/bouncer', $client->getUserAgent());
27
    }
28
29
}
30