You are here

public function ParserTest::testCanParseVeryLongValue in Loft Data Grids 7.2

File

vendor/symfony/yaml/Tests/ParserTest.php, line 1224

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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