You are here

public function YamlTest::testLegacyParseFromFile in Loft Data Grids 7.2

@group legacy

File

vendor/symfony/yaml/Tests/YamlTest.php, line 30

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