public function ParserTest::testSpecifications in Translation template extractor 7.2
Same name and namespace in other branches
- 6.3 vendor/Symfony/Component/Yaml/Tests/ParserTest.php \Symfony\Component\Yaml\Tests\ParserTest::testSpecifications()
- 7.3 vendor/Symfony/Component/Yaml/Tests/ParserTest.php \Symfony\Component\Yaml\Tests\ParserTest::testSpecifications()
@dataProvider getDataFormSpecifications
File
- vendor/
Symfony/ Component/ Yaml/ Tests/ ParserTest.php, line 34
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testSpecifications($file, $expected, $yaml, $comment) {
if ('escapedCharacters' == $file) {
if (!function_exists('iconv') && !function_exists('mb_convert_encoding')) {
$this
->markTestSkipped('The iconv and mbstring extensions are not available.');
}
}
$this
->assertEquals($expected, var_export($this->parser
->parse($yaml), true), $comment);
}