Cascade\Tests\Fixtures::getPhpArrayConfig PHP 메소드

getPhpArrayConfig() 공개 정적인 메소드

Return a config array
public static getPhpArrayConfig ( ) : array
리턴 array Config array
    public static function getPhpArrayConfig()
    {
        return require self::fixtureDir() . '/fixture_config.php';
    }

Usage Example

예제 #1
0
 public function testLoggersConfigured()
 {
     $options = Fixtures::getPhpArrayConfig();
     // Mocking the ConfigLoader with the load method
     $configLoader = $this->getMockBuilder('Cascade\\Config\\ConfigLoader')->disableOriginalConstructor()->setMethods(array('load'))->getMock();
     $configLoader->method('load')->willReturn($options);
     $config = new Config($options, $configLoader);
     $config->load();
     $config->configure();
     $this->assertTrue(Registry::hasLogger('my_logger'));
 }
All Usage Examples Of Cascade\Tests\Fixtures::getPhpArrayConfig