示例#1
0
 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);
 }
示例#2
0
 /**
  * @expectedException \Collections\TypeException
  */
 function testRemoveNonInteger()
 {
     $vector = new Vector();
     $vector->remove(array());
 }