/**
  * @test
  */
 public function updateAndDeleteProcessVariables()
 {
     $restClient = new camundaRestClient(self::$restApi);
     $ei = $restClient->getExecutions()[0];
     $ev = array('value' => 'testValue', 'type' => 'String');
     $restClient->putLocalExecutionVariable($ei->id, 'testVariable', $ev);
     $ev = array('value' => 'testValue2', 'type' => 'String');
     $restClient->putLocalExecutionVariable($ei->id, 'testVariable2', $ev);
     $ev = array();
     $pm = array();
     $pm['testVariable'] = array();
     $pm['testVariable2'] = array();
     $pm['testVariable']['value'] = 'newTestValue';
     $pm['testVariable2']['value'] = 'newTestValue2';
     $ev['modifications'] = $pm;
     $restClient->updateOrRemoveLocalExecutionVariables($ei->id, $ev);
     $this->assertEquals('newTestValue', $restClient->getLocalExecutionVariable($ei->id, 'testVariable')->value);
     $this->assertEquals('newTestValue2', $restClient->getLocalExecutionVariable($ei->id, 'testVariable2')->value);
     $pvc = count(get_object_vars($restClient->getLocalExecutionVariables($ei->id)));
     $pm = array('testVariable', 'testVariable2');
     $ev = array('deletions' => $pm);
     $restClient->updateOrRemoveLocalExecutionVariables($ei->id, $ev);
     $this->assertEquals($pvc - 2, count(get_object_vars($restClient->getLocalExecutionVariables($ei->id))));
 }