/** * @param int $total * @param int $current * @dataProvider ratioDataProvider */ public function testRatio($total, $current) { $progress = new Progress($total, $current); $this->assertEquals($current / $total, $progress->getRatio()); }