This PHP 5.4+ library provides a Elasticsearch-php mock for your tests.
Add this line in your composer.json
:
{
"require-dev": {
"m6web/elasticsearch-mock": "dev-master"
}
}
Update your vendors :
$ composer update m6web/elasticsearch-mock
$ php composer.phar install
$ ./vendor/bin/atoum -d tests
Developped by M6 Web.
Tested with atoum.
ElasticsearchMock is licensed under the MIT license.