Test Failed
Push — master ( b6dff7...455f41 )
by Gabriel
12:43 queued 11s
created

ProfilerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testNewProfile() 0 6 1
A setUp() 0 5 1
1
<?php
2
3
namespace Nip\Database\Tests\Adapters\Profiler;
4
5
use Nip\Database\Adapters\Profiler\Profiler;
6
use Nip\Database\Adapters\Profiler\QueryProfile;
7
use Nip\Database\Tests\AbstractTest;
8
9
/**
10
 * Class ProfilerTest
11
 * @package Nip\Tests\Database\Adapters\Profiler
12
 */
13
class ProfilerTest extends AbstractTest
14
{
15
16
17
    public function testNewProfile()
18
    {
19
        $profile = $this->object->newProfile(36);
20
21
        self::assertInstanceOf(QueryProfile::class, $profile);
22
    }
23
24
    protected function setUp()
25
    {
26
        parent::setUp();
27
        $this->object = new Profiler();
28
    }
29
}
30