N98\Magento\Application\Config::load PHP Method

load() public method

public load ( )
    public function load()
    {
        $this->config = $this->getLoader()->toArray();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @test
  */
 public function loader()
 {
     $config = new Config();
     try {
         $config->load();
         $this->fail('An expected exception was not thrown');
     } catch (ErrorException $e) {
         $this->assertEquals('Configuration not yet fully loaded', $e->getMessage());
     }
     $this->assertEquals(array(), $config->getConfig());
     $loader = $config->getLoader();
     $this->assertInstanceOf(__NAMESPACE__ . '\\ConfigurationLoader', $loader);
     $this->assertSame($loader, $config->getLoader());
     $loader->loadStageTwo("");
     $config->load();
     $this->assertInternalType('array', $config->getConfig());
     $this->assertGreaterThan(4, count($config->getConfig()));
     $config->setLoader($loader);
 }
All Usage Examples Of N98\Magento\Application\Config::load