/** * testRequestTime * * @access public * @return void */ function testRequestTime() { $result1 = DebugKitDebugger::requestTime(); usleep(50); $result2 = DebugKitDebugger::requestTime(); $this->assertTrue($result1 < $result2); }
/** * beforeRender Callback * * @return array **/ function beforeRender(&$controller) { $this->startTime = DebugKitDebugger::requestStartTime(); $this->currentTime = DebugKitDebugger::requestTime(); $out = array(); foreach ($this->logFiles as $log) { $file = LOGS . $log; if (!file_exists($file)) { continue; } $out[$log] = $this->_parseFile($file); } return $out; }