public function ParserTest::testSpecifications

@dataProvider getDataFormSpecifications

File

drupal/core/vendor/symfony/yaml/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);
}