Exemplo n.º 1
0
 /**
  * @covers  \Joomla\Profiler\Profiler::hasPoint
  * @uses    \Joomla\Profiler\Profiler::mark
  */
 public function testTheProfilerChecksIfAPointHasBeenAdded()
 {
     $this->assertFalse($this->instance->hasPoint('test'));
     $this->instance->mark('test');
     $this->assertTrue($this->instance->hasPoint('test'));
 }
Exemplo n.º 2
0
 /**
  * Tests the hasPoint method.
  *
  * @return  void
  *
  * @covers  \Joomla\Profiler\Profiler::hasPoint
  * @since   1.0
  */
 public function testHasPoint()
 {
     $this->assertFalse($this->instance->hasPoint('test'));
     $this->instance->mark('test');
     $this->assertTrue($this->instance->hasPoint('test'));
 }