public function testStepsStatus() { $this->stopWatch->start(); $this->assertTrue($this->stopWatch->wasStarted()); $this->assertTrue($this->stopWatch->isRunning()); $this->assertFalse($this->stopWatch->wasStopped()); $this->stopWatch->step('step1'); $this->assertTrue($this->stopWatch->wasStarted()); $this->assertTrue($this->stopWatch->isRunning()); $this->assertFalse($this->stopWatch->wasStopped()); $this->stopWatch->step('step2'); $this->assertTrue($this->stopWatch->wasStarted()); $this->assertTrue($this->stopWatch->isRunning()); $this->assertFalse($this->stopWatch->wasStopped()); $this->stopWatch->stop(); $this->assertTrue($this->stopWatch->wasStarted()); $this->assertFalse($this->stopWatch->isRunning()); $this->assertTrue($this->stopWatch->wasStopped()); }