You are here

public function InlineTest::getTestsForParseLegacyPhpConstants in Lockr 7.3

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getTestsForParseLegacyPhpConstants() {
  return [
    [
      '!php/const:Symfony\\Component\\Yaml\\Yaml::PARSE_CONSTANT',
      Yaml::PARSE_CONSTANT,
    ],
    [
      '!php/const:PHP_INT_MAX',
      PHP_INT_MAX,
    ],
    [
      '[!php/const:PHP_INT_MAX]',
      [
        PHP_INT_MAX,
      ],
    ],
    [
      '{ foo: !php/const:PHP_INT_MAX }',
      [
        'foo' => PHP_INT_MAX,
      ],
    ],
    [
      '!php/const:NULL',
      null,
    ],
  ];
}