Пример #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));
 }