Passed
Push — master ( 542807...000b7f )
by Hector Luis
11:24
created

ConnectionTest::testGenerateClient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Test Suite
6
 * @category    Ticaje
7
 * @package     Ticaje_Connector
8
 * @author      Hector Luis Barrientos <[email protected]>
9
 */
10
11
namespace Ticaje\Connector\Test\Unit\Gateway\Client;
12
13
use Ticaje\Connector\Test\Unit\BaseTest;
14
use Ticaje\Connector\Interfaces\Protocol\RestClientInterface;
15
use Ticaje\Connector\Gateway\Client\Rest;
16
17
/**
18
 * Class ConnectionTest
19
 * @package Ticaje\Connector\Test\Unit\Gateway\Client
20
 */
21
class ConnectionTest extends BaseTest
22
{
23
    private $client;
24
25
    public function setUp()
26
    {
27
        parent::setUp();
28
        $this->client = $this->objectManager->getObject(Rest::class, ['baseUriKey' => RestClientInterface::BASE_URI_KEY]);
29
    }
30
31
    public function testInstantiateRestClient()
32
    {
33
        $this->assertInstanceOf(RestClientInterface::class, $this->client);
34
    }
35
}
36