public function testAttachLog() { foreach (explode(':', get_include_path()) as $path) { if (file_exists($path . '/Log.php')) { include_once 'Log.php'; } } if (!class_exists('Log')) { $this->markTestSkipped(); } $log = Log::factory('null'); HTTP_OAuth::attachLog($log); $oauth = $this->getMock('HTTP_OAuth', array('foo')); $oauth->debug('foo'); $oauth->info('foo'); $oauth->err('foo'); HTTP_OAuth::detachLog($log); }