Scalr\Tests\Service\CloudStack\CloudStackTest::getResponseCallback PHP Метод

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

Gets response callback
public getResponseCallback ( string $method ) : Closure
$method string CloudStack API method
Результат Closure
    public function getResponseCallback($method)
    {
        $responseMock = $this->getQueryClientResponseMock($this->getFixtureFileContent($method . '.json'), $method);
        return function () use($responseMock) {
            return $responseMock;
        };
    }