You are here

public function InlineTest::testVeryLongQuotedStrings in Lockr 7.3

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

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