public function YamlTest::testLegacyParseFromFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/yaml/Tests/YamlTest.php \Symfony\Component\Yaml\Tests\YamlTest::testLegacyParseFromFile()
@group legacy
File
- vendor/
symfony/ yaml/ Tests/ YamlTest.php, line 29
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testLegacyParseFromFile() {
$filename = __DIR__ . '/Fixtures/index.yml';
$contents = file_get_contents($filename);
$parsedByFilename = Yaml::parse($filename);
$parsedByContents = Yaml::parse($contents);
$this
->assertEquals($parsedByFilename, $parsedByContents);
}