public function testGetEndTime() { $time = microtime(true); $this->benchmark->expects($this->once())->method('getEndTime')->willReturn($time); $this->assertSame($time, $this->formatter->getEndTime()); }