You are here

public function InlineTest::getInvalidBinaryData in Lockr 7.3

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getInvalidBinaryData() {
  return [
    'length not a multiple of four' => [
      '!!binary "SGVsbG8d29ybGQ="',
      '/The normalized base64 encoded data \\(data without whitespace characters\\) length must be a multiple of four \\(\\d+ bytes given\\)/',
    ],
    'invalid characters' => [
      '!!binary "SGVsbG8#d29ybGQ="',
      '/The base64 encoded data \\(.*\\) contains invalid characters/',
    ],
    'too many equals characters' => [
      '!!binary "SGVsbG8gd29yb==="',
      '/The base64 encoded data \\(.*\\) contains invalid characters/',
    ],
    'misplaced equals character' => [
      '!!binary "SGVsbG8gd29ybG=Q"',
      '/The base64 encoded data \\(.*\\) contains invalid characters/',
    ],
  ];
}