public function testApiIsStarted_ReturnsTrue_WhenStateDoesMatch() { $runtime = $this->createModel(); $states = [Runtime::STATE_STARTED]; foreach ($states as $state) { $runtime->setState($state); $this->assertTrue($runtime->isStarted()); } }