You are here

public function ParserTest::getBinaryData in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getBinaryData() {
  return [
    'enclosed with double quotes' => [
      'data: !!binary "SGVsbG8gd29ybGQ="',
    ],
    'enclosed with single quotes' => [
      "data: !!binary 'SGVsbG8gd29ybGQ='",
    ],
    'containing spaces' => [
      'data: !!binary  "SGVs bG8gd 29ybGQ="',
    ],
    'in block scalar' => [
      <<<'EOT'
data: !!binary |
    SGVsbG8gd29ybGQ=
EOT
,
    ],
    'containing spaces in block scalar' => [
      <<<'EOT'
data: !!binary |
    SGVs bG8gd 29ybGQ=
EOT
,
    ],
  ];
}