/** * @param \Iterator $it * @param mixed $first * @param mixed $last * @param int $count * @param callable $predicate * * @dataProvider dataProvider */ public function testLast(\Iterator $it, $first, $last, $count, callable $predicate = null) { $this->assertEquals($last, $it->last($predicate)); }