/** * @todo Implement testInit(). */ public function testInit() { $config = Panda::getConfig(); $config[Panda::CONFIG_DEBUG] = true; Panda::init($config); $config = Panda::getConfig(); $this->assertTrue($config[Panda::CONFIG_DEBUG] === true); }
/** * Prints human-readable trace information's link on link * * @param bool $condition * * @return void */ function tr($condition = true) { if (!$condition) { return; } if (function_exists('fb')) { fb("tr()", FirePHP::TRACE); } $config = Panda::getConfig(); if ($config[Panda::CONFIG_DEBUG] !== true) { $trace = debug_backtrace(); $file = $trace[0]['file']; $line = $trace[0]['line']; trigger_error('tr() is called in no debug mode in ' . $file . ' on line ' . $line, E_USER_WARNING); return; } Panda_Debug::trace(false, debug_backtrace()); }