public function removing() { $v = new Vector(); $o = new String('one'); $v->add($o); $r = $v->remove(0); $this->assertEquals(0, $v->size()); $this->assertEquals($o, $r); }
/** * @expectedException \Collections\TypeException */ function testRemoveNonInteger() { $vector = new Vector(); $vector->remove(array()); }