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