Exemplo n.º 1
0
 /**
  * @param \Iterator $it
  * @param mixed $first
  * @param mixed $last
  * @param int $count
  * @param callable $predicate
  *
  * @dataProvider dataProvider
  */
 public function testEach(\Iterator $it, $first, $last, $count, callable $predicate = null)
 {
     $it->each(function ($item) use(&$count) {
         $count--;
     }, $predicate);
     $this->assertEquals(0, $count);
 }