예제 #1
0
 public function testGetConfigMetadata()
 {
     $path = __DIR__ . '/../data/metadataTest';
     $configuration = new Configuration($path, 'test', new Temp('test'));
     $yml = $configuration->getConfigMetadata();
     self::assertEquals(Yaml::parse("some: data\nmore:\n    woah: 'such recursive'"), $yml);
     $noConfiguration = new Configuration('asdf', 'test', new Temp('test'));
     self::assertEquals(null, $noConfiguration->getConfigMetadata());
 }