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