composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
42
vendor/symfony/yaml/Tests/ParserTest.php
vendored
42
vendor/symfony/yaml/Tests/ParserTest.php
vendored
|
@ -2177,6 +2177,48 @@ EOE;
|
|||
$this->parser->parse($yaml);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider circularReferenceProvider
|
||||
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
|
||||
* @expectedExceptionMessage Circular reference [foo, bar, foo] detected
|
||||
*/
|
||||
public function testDetectCircularReferences($yaml)
|
||||
{
|
||||
$this->parser->parse($yaml, Yaml::PARSE_CUSTOM_TAGS);
|
||||
}
|
||||
|
||||
public function circularReferenceProvider()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
$yaml = <<<YAML
|
||||
foo:
|
||||
- &foo
|
||||
- &bar
|
||||
bar: foobar
|
||||
baz: *foo
|
||||
YAML;
|
||||
$tests['sequence'] = array($yaml);
|
||||
|
||||
$yaml = <<<YAML
|
||||
foo: &foo
|
||||
bar: &bar
|
||||
foobar: baz
|
||||
baz: *foo
|
||||
YAML;
|
||||
$tests['mapping'] = array($yaml);
|
||||
|
||||
$yaml = <<<YAML
|
||||
foo: &foo
|
||||
bar: &bar
|
||||
foobar: baz
|
||||
<<: *foo
|
||||
YAML;
|
||||
$tests['mapping with merge key'] = array($yaml);
|
||||
|
||||
return $tests;
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider indentedMappingData
|
||||
*/
|
||||
|
|
Reference in a new issue