public function testCreateStartedAndStopStatus() { $stopWatch = Stopwatch::createStarted(); $this->assertTrue($stopWatch->wasStarted()); $this->assertTrue($stopWatch->isRunning()); $this->assertFalse($stopWatch->wasStopped()); $stopWatch->stop(); $this->assertTrue($stopWatch->wasStarted()); $this->assertFalse($stopWatch->isRunning()); $this->assertTrue($stopWatch->wasStopped()); }