Пример #1
0
 /**
  * Test that loading a config set works correctly.
  */
 public function testLoad()
 {
     if (!class_exists('Titon\\Io\\Reader\\PhpReader')) {
         $this->markTestSkipped('Test skipped; Please install titon/io via Composer');
     }
     $reader = new PhpReader(TEMP_DIR . '/config.php');
     Config::load('Php', $reader);
     $this->assertArrayHasKey('Php', Config::all());
     $data = Config::get('Php');
     $this->assertEquals($data, $this->test);
 }