Example #1
0
 /**
  * @covers ::start
  */
 public function testStart()
 {
     $this->assertFalse($this->profiler->isStarted());
     $this->assertFalse($this->profiler->isStarted("profile1"));
     $time = microtime(true);
     $this->assertGreaterThanOrEqual($time, $this->profiler->start());
     $this->assertGreaterThanOrEqual($time, $this->profiler->start("profile1"));
     $this->assertGreaterThanOrEqual($time, $this->profiler->start("profile2"));
     $this->assertTrue($this->profiler->isStarted());
     $this->assertTrue($this->profiler->isStarted("profile1"));
 }