经过一些认真的调试后,我发现在使用 EcomDev_PHPUnit 模块运行测试时,我无法调用以获取 Magento 中的会话对象
任何单例/模型调用,即Mage::getSingleton('admin/session')或Mage::getModel('customer/session')最终抛出异常,EcomDev_PHPUnit_Controller_Request_Http::getHttpHost()说明Cannot run controller test, because the host is not set for base url. 这是由于$_SERVER['HTTP_HOST']未设置索引而引起的
配置中是否有我可能缺少的东西导致这种情况?