Skip to content

Commit 89f7056

Browse files
Make test-suite compatible with older Symfony versions
1 parent 5f3ae0c commit 89f7056

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Partial/PartialNodeTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ public function it_fails_when_a_requested_child_node_is_no_array_node_itself()
119119

120120
private function nodeOnlyHasChild(ArrayNode $node, $nodeName)
121121
{
122-
$children = $node->getChildren();
122+
$property = new \ReflectionProperty($node, 'children');
123+
$property->setAccessible(true);
124+
$children = $property->getValue($node);
125+
123126
$this->assertCount(1, $children);
124127
$firstChild = reset($children);
125128
$this->assertSame($nodeName, $firstChild->getName());

0 commit comments

Comments
 (0)