Completed
Push — master ( 932683...ea80b7 )
by Jacob
04:03
created

PhpQuickProfilerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A testConstruct() 0 10 1
1
<?php
2
3
namespace Particletree\Pqp;
4
5
use PHPUnit_Framework_Testcase;
6
7
class PhpQuickProfilerTest extends PHPUnit_Framework_TestCase
8
{
9
10
    public function __construct()
11
    {
12
    }
13
14
    public function testConstruct()
15
    {
16
        $console = new Console();
17
        $startTime = microtime(true);
18
19
        $profiler = new PhpQuickProfiler($console, null, $startTime);
20
21
        $this->assertAttributeSame($console, 'console', $profiler);
22
        $this->assertAttributeEquals($startTime, 'startTime', $profiler);
23
    }
24
}
25