public function testCase03() { $this->setUpLoader(); $this->loader->clearLocalNamespace(); $this->loader->registerLocalNamespace("Baidu"); $this->assertTrue($this->loader->isLocalName('Baidu_Name')); if (!defined('YAF_MODE')) { Yaf_G::iniSet('yaf.use_spl_autoload', false); } else { ini_set('yaf.use_spl_autoload', false); } try { $this->loader->autoload("Baidu_Name"); } catch (PHPUnit_Framework_Error_Warning $e) { $this->assertContains('Could not find script ' . TEST_APPLICATION_PATH . '_files/Baidu/Name.php', $e->getMessage()); } try { $this->loader->autoload("Global_Name"); } catch (PHPUnit_Framework_Error_Warning $e) { $this->assertContains('Could not find script ' . TEST_APPLICATION_PATH . '_files/global/Global/Name.php', $e->getMessage()); } }