You are here

public function ParserTest::testSpecifications in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Symfony/Component/Yaml/Tests/ParserTest.php \Symfony\Component\Yaml\Tests\ParserTest::testSpecifications()
  2. 7.2 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

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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