Exemplo n.º 1
0
 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());
 }