ClientTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testEmptyLogger() 0 5 1
A testEmptyCache() 0 5 1
1
<?php
2
/**
3
 * xMDB-API
4
 *
5
 * Copyright © 2017 pudelek.org.pl
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For the full copyright and license information, please view source file
10
 * that is bundled with this package in the file LICENSE
11
 *
12
 * @author Marcin Pudełek <[email protected]>
13
 */
14
15
16
namespace mrcnpdlk\MojePanstwo;
17
18
19
use Psr\Log\NullLogger;
20
21
class ClientTest extends TestCase
22
{
23
    public function setUp()
24
    {
25
        parent::setUp();
26
    }
27
28
    public function testEmptyLogger()
29
    {
30
        $oClient = new \mrcnpdlk\Xmdb\Client();
31
        $this->assertInstanceOf(NullLogger::class, $oClient->getLogger());
32
    }
33
34
    public function testEmptyCache()
35
    {
36
        $oClient = new \mrcnpdlk\Xmdb\Client();
37
        $this->assertInstanceOf(NullLogger::class, $oClient->getLogger());
38
    }
39
40
41
}
42