We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3ae0c commit 89f7056Copy full SHA for 89f7056
Tests/Partial/PartialNodeTest.php
@@ -119,7 +119,10 @@ public function it_fails_when_a_requested_child_node_is_no_array_node_itself()
119
120
private function nodeOnlyHasChild(ArrayNode $node, $nodeName)
121
{
122
- $children = $node->getChildren();
+ $property = new \ReflectionProperty($node, 'children');
123
+ $property->setAccessible(true);
124
+ $children = $property->getValue($node);
125
+
126
$this->assertCount(1, $children);
127
$firstChild = reset($children);
128
$this->assertSame($nodeName, $firstChild->getName());
0 commit comments