本文整理汇总了PHP中Library\Application::getApplicationConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::getApplicationConfig方法的具体用法?PHP Application::getApplicationConfig怎么用?PHP Application::getApplicationConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Library\Application
的用法示例。
在下文中一共展示了Application::getApplicationConfig方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/**
* Set up application config
*/
public function setUp()
{
parent::setUp();
$this->setTraceError(true);
$this->setApplicationConfig(\Library\Application::getApplicationConfig('Console', true));
// Put application in authenticated state
$auth = $this->createMock('Model\\Operator\\AuthenticationService');
$auth->expects($this->atLeastOnce())->method('hasIdentity')->willReturn(true);
$serviceManager = $this->getApplicationServiceLocator();
$serviceManager->setService('Model\\Operator\\AuthenticationService', $auth);
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->setTraceError(true);
$this->setApplicationConfig(\Library\Application::getApplicationConfig('Export', true));
}
示例3: testGetApplicationConfigWithTestEnvironment
public function testGetApplicationConfigWithTestEnvironment()
{
$this->assertEquals(array_merge_recursive(require Application::getPath('config/application.config.php'), array('modules' => array('moduleName'), 'module_listener_options' => array('module_paths' => array(realpath(__DIR__ . '/../..'))), 'Library\\UserConfig' => array('debug' => array('display backtrace' => true, 'report missing translations' => true)))), Application::getApplicationConfig('moduleName', true));
}