/** * @covers \Joomla\Profiler\Profiler::getPoint * @uses \Joomla\Profiler\Profiler::mark */ public function testTheProfilerRetrievesTheRequestedPoint() { $this->assertNull($this->instance->getPoint('foo')); $this->instance->mark('start'); $point = $this->instance->getPoint('start'); $this->assertInstanceOf('\\Joomla\\Profiler\\ProfilePoint', $point); $this->assertEquals('start', $point->getName()); }