ApiTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testThatApiClassInstantiatesProperly() 0 4 1
1
<?php
2
3
namespace Onesky\Api\Tests;
4
5
use Onesky\Api\Client;
6
7
class ApiTest extends \PHPUnit_Framework_TestCase
8
{
9
    /** @var \Onesky\Api\Client $api */
10
    protected $api;
11
12
    public function setUp()
13
    {
14
        $this->api = new Client();
15
    }
16
17
    public function testThatApiClassInstantiatesProperly()
18
    {
19
        $this->assertInstanceOf('Onesky\Api\Client', $this->api);
20
    }
21
}
22