|
|
@ -95,9 +95,10 @@ class ProfilerTest extends PHPUnit_Framework_TestCase |
|
|
|
|
|
|
|
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false); |
|
|
|
$profiler = Profiler::getInstance(); |
|
|
|
$cmdProfiler = $profiler->profilerCommand('command', 'type'); |
|
|
|
|
|
|
|
$profiler->start(); |
|
|
|
$cmdProfiler = $profiler->profilerCommand('command', 'type'); |
|
|
|
$this->assertNotNull($cmdProfiler); |
|
|
|
$result = $profiler->end('<body></body>'); |
|
|
|
$this->assertNotEquals('<body></body>', $result); |
|
|
|
$this->assertStringEndsNotWith(']<br/></div></body>', $result); |
|
|
@ -130,8 +131,8 @@ class ProfilerTest extends PHPUnit_Framework_TestCase |
|
|
|
|
|
|
|
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false); |
|
|
|
$profiler = Profiler::getInstance(); |
|
|
|
$cmdProfiler = $profiler->profilerCommand('command', 'type'); |
|
|
|
$profiler->start(); |
|
|
|
$cmdProfiler = $profiler->profilerCommand('command', 'type'); |
|
|
|
$result = $profiler->end('<body></body>'); |
|
|
|
$this->assertNotEquals('<body></body>', $result); |
|
|
|
$this->assertStringEndsNotWith(']<br/></div></body>', $result); |
|
|
|