ProfilerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testNewProfile() 0 5 1
A setUp() 0 4 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
    public function testNewProfile()
16
    {
17
        $profile = $this->object->newProfile(36);
18
19
        self::assertInstanceOf(QueryProfile::class, $profile);
20
    }
21
22
    protected function setUp(): void
23
    {
24
        parent::setUp();
25
        $this->object = new Profiler();
26
    }
27
}
28