Completed
Push — master ( 739fa2...28ba71 )
by Jacob
02:23
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
use Particletree\Pqp\Console;
4
use Particletree\Pqp\PhpQuickProfiler;
5
6
class PhpQuickProfilerTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
{
8
9
    public function __construct()
10
    {
11
    }
12
13
    public function testConstruct()
14
    {
15
        $console = new Console();
16
        $startTime = microtime(true);
17
18
        $profiler = new PhpQuickProfiler($console, $startTime);
19
20
        $this->assertAttributeSame($console, 'console', $profiler);
21
        $this->assertAttributeEquals($startTime, 'startTime', $profiler);
22
    }
23
}
24