You are here

public function YamlTest::testLegacyParseFromFile in Zircon Profile 8

Same name and namespace in other branches
  1. 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

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

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);
}