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