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

ProfilerTest::testNewProfile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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