You are here

public function YamlTest::testLegacyParseFromFile in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/YamlTest.php \Symfony\Component\Yaml\Tests\YamlTest::testLegacyParseFromFile()

@group legacy

File

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/YamlTest.php, line 29

Class

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testLegacyParseFromFile() {
  $this
    ->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
  $filename = __DIR__ . '/Fixtures/index.yml';
  $contents = file_get_contents($filename);
  $parsedByFilename = Yaml::parse($filename);
  $parsedByContents = Yaml::parse($contents);
  $this
    ->assertEquals($parsedByFilename, $parsedByContents);
}