/**
  * @covers Fabfuel\Prophiler\Decorator\Elasticsearch\ClientDecorator::__call
  */
 public function testCall()
 {
     $payload = ['lorem' => 'ipsum'];
     $benchmark = $this->getMock('Fabfuel\\Prophiler\\Benchmark\\BenchmarkInterface');
     $this->client->expects($this->once())->method('get')->with($payload);
     $this->profiler->expects($this->once())->method('start')->with('ElasticMock::get', [$payload], 'Elasticsearch')->willReturn($benchmark);
     $this->profiler->expects($this->once())->method('stop')->with($benchmark);
     $this->decorator->get($payload);
 }
 /**
  * Tests the indices method.
  */
 public function testMethodIndices()
 {
     $output = [];
     $this->client->expects($this->any())->method('indices')->will($this->returnValue($output));
     $this->specify('method indices is ran', function () use($output) {
         verify($this->service->indices())->equals($output);
     });
 }