Exemplo n.º 1
0
 /**
  * @test
  */
 public function getExecutionCount()
 {
     $restClient = new camundaRestClient(self::$restApi);
     $er = array('active' => true);
     $count1 = $restClient->getExecutionsCount()->count;
     $count2 = count($restClient->getExecutions());
     $count3 = $restClient->getExecutionsCount(null, true)->count;
     $count4 = count($restClient->getExecutions(null, true));
     $count5 = $restClient->getExecutionsCount($er)->count;
     $count6 = count($restClient->getExecutions($er));
     $this->assertEquals($count1, $count2);
     $this->assertEquals($count3, $count4);
     $this->assertEquals($count5, $count6);
 }