public function testApiCommand_ThrowsException_WhenParamFlagsDoesNotExist() { $this->setExpectedException(RejectionException::class); $command = $this->createCommand(); $this->callProtectedMethod($command, 'command', [[]]); }