public function testGetVariableInstancesWithGet() { $restService = new camundaRestClient(self::$restApi); $vi = $restService->getVariableInstances(); $i = 0; foreach ($vi as $data) { if ($data->name == 'serializableVar') { $i++; } } $this->assertGreaterThan(0, $i); $restService = new camundaRestClient(self::$restApi); $vi = $restService->getVariableInstances(null, true); $i = 0; foreach ($vi as $data) { if ($data->name == 'serializableVar') { $i++; } } $this->assertGreaterThan(0, $i); $restService = new camundaRestClient(self::$restApi); $vir = array('variableName' => 'amount'); $vi = $restService->getVariableInstances($vir, true); $this->assertGreaterThan(0, count($vi)); }