You are here

public function InlineTest::getTestsForParseLegacyPhpConstants in Database Sanitize 7

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

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