Example #1
0
 private function createRuntimeComment($runtime)
 {
     if ($this->context->hasStopWatch()) {
         return sprintf(self::COMMENT_TIMING, $runtime);
     }
     return '';
 }
Example #2
0
 /**
  * @test
  */
 public function disableStopWatch_success()
 {
     $this->target->enableStopWatch();
     $this->target->disableStopWatch();
     $this->assertFalse($this->target->hasStopWatch());
 }