public function testApiConstructor_ThrowsException_WhenNoRuntimeIsPassed() { $this->setExpectedException(InstantiationException::class); $command = $this->createCommand(['runtime' => null]); }