You are here

public function ParserTest::testCanParseVeryLongValue in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testCanParseVeryLongValue() {
  $longStringWithSpaces = str_repeat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ', 20000);
  $trickyVal = [
    'x' => $longStringWithSpaces,
  ];
  $yamlString = Yaml::dump($trickyVal);
  $arrayFromYaml = $this->parser
    ->parse($yamlString);
  $this
    ->assertEquals($trickyVal, $arrayFromYaml);
}