Example #1
0
File: ATest.php Project: ihor/Nspl
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testFirstForEmptyIterator()
 {
     first(new \ArrayIterator([]));
 }
Example #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testFirstForEmptyList()
 {
     first([]);
 }