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