public function ParserTest::testCanParseVeryLongValue in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1923
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testCanParseVeryLongValue() {
$longStringWithSpaces = str_repeat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ', 20000);
$trickyVal = [
'x' => $longStringWithSpaces,
];
$yamlString = Yaml::dump($trickyVal);
$arrayFromYaml = $this->parser
->parse($yamlString);
$this
->assertEquals($trickyVal, $arrayFromYaml);
}