Exemplo n.º 1
0
 public function testIsRemovingNodes()
 {
     $node = new FieldNode();
     $node->add('test');
     $node->remove('test');
     $this->assertCount(0, $node);
 }
Exemplo n.º 2
0
 /**
  * @param string $key     Request parameter key
  * @param string $type    Request parameter type
  * @param array  $options
  */
 public function add($key, $type = 'string', $options = [])
 {
     return $this->root->add($key, $type, $options);
 }