public function testIsDetectingChildsNode() { $typeHandler = $this->prophesize(TypeHandler::class); $typeHandler->getType('string')->willReturn(new BaseNode()); $base = new BaseNode(); $base->setTypeHandler($typeHandler->reveal()); $child = $base->add('foobar', 'string', ['required' => false]); $this->assertTrue($base->hasChildren()); }