protected function _before() { $this->client = $this->tester->getElasticaClient(); // make sure we have no data before each test action try { // delete test index $this->client->request('/_all/', Request::DELETE); } catch (\Exception $e) { //pass } }