You are here

public function InlineTest::testParsePhpConstantThrowsExceptionWhenUndefined in Lockr 7.3

@expectedException \Symfony\Component\Yaml\Exception\ParseException @expectedExceptionMessage The constant "WRONG_CONSTANT" is not defined

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testParsePhpConstantThrowsExceptionWhenUndefined() {
  Inline::parse('!php/const WRONG_CONSTANT', Yaml::PARSE_CONSTANT);
}