Пример #1
0
 /**
  * @param \Iterator $it
  * @param number $min
  * @param number $max
  * @param number $avg
  * @param number $sum
  * @param callable $predicate
  *
  * @dataProvider numberDataProvider
  */
 public function testAverage(\Iterator $it, $min, $max, $avg, $sum, callable $predicate = null)
 {
     $this->assertEquals($avg, $it->average($predicate));
 }