public function testDebugCallback() { fCore::registerDebugCallback(create_function('$message', 'echo strtoupper($message);')); fCore::enableDebugging(TRUE); ob_start(); fCore::debug('This is a test', FALSE); $output = ob_get_clean(); $this->assertEquals('THIS IS A TEST', $output); }