NetAcuityTest::getGeo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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