예제 #1
0
 public function testSaveYamlWritesCorrectYaml()
 {
     $this->writer->saveYaml($this->getPath('test.yaml'));
     $this->assertEquals(loadFixtureContent('Configuration/expected.yaml'), $this->getContents('test.yaml'));
 }
예제 #2
0
 public function testParserCreatesYAMLFromArray()
 {
     $p = $this->getYAMLParser();
     $this->assertEquals(loadFixtureContent('Configuration/Parsers/yaml_string.yaml'), $p->toYaml($this->expectedValueFromYAMLString));
 }