You are here

public function InlineTest::testParsePhpConstantThrowsExceptionOnInvalidType in Lockr 7.3

@expectedException \Symfony\Component\Yaml\Exception\ParseException @expectedExceptionMessageRegExp #The string "!php/const PHP_INT_MAX" could not be parsed as a constant.*#

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testParsePhpConstantThrowsExceptionOnInvalidType() {
  Inline::parse('!php/const PHP_INT_MAX', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
}