示例#1
0
 /**
  * Checks removing an item which doesn't exist throws the correct exception.
  *
  * @expectedException \InvalidArgumentException
  */
 public function testRemovingItemDoesntExist()
 {
     $item = [0 => "hello"];
     $collection = new Collection($item);
     $collection->remove(3);
 }