assertEquals( $expected, (new TimerStrategyService())->getExtraTime($time, $multiplier) ); } /** * @return array */ public function dataProviderTestRoundToMinutes() { return [ [0, 60, 1], [1350, 2700, 1.5], [120, 30, 5], [0, 300, 0], [300, 300, 2], [330, 330, 2] ]; } /** * @dataProvider dataProviderTestGetMultipliedTime * @param int $expected * @param int $time * @param int $multiplier */ public function testGetMultipliedTime($expected, $time, $multiplier) { $this->assertEquals( $expected, (new TimerStrategyService())->getMultipliedTime($time, $multiplier) ); } /** * @return array */ public function dataProviderTestGetMultipliedTime() { return [ [60, 60, 1], [90, 60, 1.5], [150, 30, 5], [300, 300, 0.5], [300, 300, 0] ]; } }