Avoid using PhpUnit mock objects to not trigger deprecation waring
Avoid using PhpUnit mock objects to not trigger deprecation waring

See https://github.com/algolia/algoliasearch-client-php/pull/608#issuecomment-584153108

algolia/algoliasearch-client-php