public function YamlTest::testLegacyParseFromFile in Service Container 7
Same name and namespace in other branches
- 7.2 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
Namespace
Symfony\Component\Yaml\TestsCode
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);
}