/** * @expectedException \InvalidArgumentException */ public function testFirstForEmptyIterator() { first(new \ArrayIterator([])); }
/** * @expectedException \InvalidArgumentException */ public function testFirstForEmptyList() { first([]); }