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