exec() публичный Метод

Null transport.
public exec ( Request $request, array $params ) : Response
$request Elastica\Request
$params array Hostname, port, path, ...
Результат Elastica\Response Response empty object
Пример #1
0
 /**
  * @group functional
  */
 public function testExec()
 {
     $request = new Request('/test');
     $params = array('name' => 'ruflin');
     $transport = new NullTransport();
     $response = $transport->exec($request, $params);
     $this->assertInstanceOf('\\Elastica\\Response', $response);
     $data = $response->getData();
     $this->assertEquals($params, $data['params']);
 }