NetAcuityTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getGeo() 0 7 1
1
<?php
2
3
namespace TraderInteractive\NetAcuity\Tests;
4
5
use TraderInteractive\NetAcuity\NetAcuity;
6
7
/**
8
 * @coversDefaultClass \TraderInteractive\NetAcuity\NetAcuity
9
 * @covers ::__construct
10
 */
11
final class NetAcuityTest extends NetAcuityTestSuite
12
{
13
    /**
14
     * @test
15
     * @covers ::getGeo
16
     *
17
     * @return void
18
     */
19
    public function getGeo()
20
    {
21
        $client = new NetAcuity(new TestDatabase());
22
        $actual = $client->getGeo('127.0.0.1');
23
        $expected = ['some' => 'data'];
24
        $this->assertSame($expected, $actual);
25
    }
26
}
27