You are here

public function InlineTest::testVeryLongQuotedStrings in Loft Data Grids 7.2

File

vendor/symfony/yaml/Tests/InlineTest.php, line 477

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testVeryLongQuotedStrings() {
  $longStringWithQuotes = str_repeat("x\r\n\\\"x\"x", 1000);
  $yamlString = Inline::dump(array(
    'longStringWithQuotes' => $longStringWithQuotes,
  ));
  $arrayFromYaml = Inline::parse($yamlString);
  $this
    ->assertEquals($longStringWithQuotes, $arrayFromYaml['longStringWithQuotes']);
}