src/ElasticsearchMock/Client.php
public function getNextMethodCalls($method)
    {
        if (!empty($this->calls[$method])) {
            return array_shift($this->calls[$method]);
        }

        return [];
    }
public function getNextMethodCalls($method)
    {
        if (!empty($this->calls[$method])) {
            return array_shift($this->calls[$method]);
        }

        return [];
    }
@param string $method

@return array