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