- public function testDataProvider()
+ public function dataProvider()
{
return [
[0, '00:00:00', '0:00'],
[61, '00:01:01', '1:01'],
[3600, '01:00:00', '60:00'],
[-1, '-00:00:01', '-0:01'],
[-3601, '-01:00:01', '-60:01'],
];
}
/**
- * @dataProvider testDataProvider
+ * @dataProvider dataProvider
*/
public function testFullLengthString($seconds, $fullString, $shortString)
{
$this->assertEquals($fullString, TimeFormatUtils::convertToHoursMinsSeconds($seconds));
}