public function testFormat() { $timeSpent = new TimeSpent(9900); $this->assertEquals('2h 45m', $timeSpent->format()); $timeSpent = new TimeSpent(178440); $this->assertEquals('2d 1h 34m', (string) $timeSpent); }
public function testFormat() { $timeSpent = new TimeSpent(9900); $this->assertEquals('2h 45m', $timeSpent->format()); $timeSpent = new TimeSpent(178440); $this->assertEquals('2d 1h 34m', (string) $timeSpent); }