public function ParserTest::testPhpConstantTagMappingKey in Database Sanitize 7
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1955
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testPhpConstantTagMappingKey() {
$yaml = <<<YAML
transitions:
!php/const 'Symfony\\Component\\Yaml\\Tests\\B::FOO':
from:
- !php/const 'Symfony\\Component\\Yaml\\Tests\\B::BAR'
to: !php/const 'Symfony\\Component\\Yaml\\Tests\\B::BAZ'
YAML;
$expected = array(
'transitions' => array(
'foo' => array(
'from' => array(
'bar',
),
'to' => 'baz',
),
),
);
$this
->assertSame($expected, $this->parser
->parse($yaml, Yaml::PARSE_CONSTANT));
}