/** * @dataProvider factors */ public function testFactorsReturnsAnArrayOfFactorsOfTheNumber($n, array $factors) { $i = new IntType($n); $this->assertEquals($factors, $i->factors()); }