HttpClientTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isInitializable() 0 5 1
A shouldAcceptASetOfOptions() 0 5 1
1
<?php
2
3
/**
4
 * This file is a part of nekland youtube api package
5
 *
6
 * (c) Nekland <[email protected]>
7
 *
8
 * For the full license, take a look to the LICENSE file
9
 * on the root directory of this project
10
 */
11
12
namespace Nekland\Tests\Http;
13
14
15
use Nekland\YoutubeApi\Http\HttpClient;
16
17
class HttpClientTest extends \PHPUnit_Framework_TestCase
18
{
19
    /**
20
     * @test
21
     */
22
    public function isInitializable()
23
    {
24
        $client = new HttpClient();
25
        $this->assertInstanceOf('Nekland\\YoutubeApi\\Http\\HttpClient', $client);
26
    }
27
28
    /**
29
     * @test
30
     */
31
    public function shouldAcceptASetOfOptions()
32
    {
33
        $client = new HttpClient(['user_agent' => 'Nekland Website']);
34
        $this->assertInstanceOf('Nekland\\YoutubeApi\\Http\\HttpClient', $client);
35
    }
36
}
37