/** * Tests the getTime method. * * @return void * * @covers \Joomla\Profiler\ProfilePoint::getTime * @since 1.0 */ public function testGetTime() { $profilePoint = new ProfilePoint('test', 0, 0); $this->assertEquals($profilePoint->getTime(), 0); $profilePoint = new ProfilePoint('test', 1.5, 0); $this->assertEquals($profilePoint->getTime(), 1.5); }
/** * @covers \Joomla\Profiler\ProfilePoint::getTime */ public function testThePointTimeIsReturned() { $this->assertEquals($this->instance->getTime(), 0.0); }