public function testSecondsToTimeString() { $this->assertEquals('0:00:00', StringUtils::secondsToTimeString(0)); $this->assertEquals('00:00', StringUtils::secondsToTimeString(0, true)); $this->assertEquals('0:00:05', StringUtils::secondsToTimeString(5)); $this->assertEquals('0:15:36', StringUtils::secondsToTimeString(936)); $this->assertEquals('15:36', StringUtils::secondsToTimeString(936, true)); $this->assertEquals('14:54:23', StringUtils::secondsToTimeString(53663)); $this->assertEquals('-0:00:05', StringUtils::secondsToTimeString(-5)); $this->assertEquals('-0:15:36', StringUtils::secondsToTimeString(-936)); $this->assertEquals('-15:36', StringUtils::secondsToTimeString(-936, true)); $this->assertEquals('-14:54:23', StringUtils::secondsToTimeString(-53663)); }