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'); }
/** * @param string $type */ public function remove($key) { $this->root->remove($key); }