Пример #1
0
 public function testIsDetectingScalarCollection()
 {
     $node = new FieldNode();
     $node->setType('int[]');
     $this->assertTrue($node->isScalarCollection(), 'int[] should be a collection');
     $node->setType('FooBar[');
     $this->assertFalse($node->isScalarCollection(), 'Foobar[ should no be a collection');
 }
Пример #2
0
 /**
  * @param string $type
  */
 public function remove($key)
 {
     $this->root->remove($key);
 }