Scalr\Tests\Service\CloudStack\CloudStackTest::getResponseCallback PHP Method

getResponseCallback() public method

Gets response callback
public getResponseCallback ( string $method ) : Closure
$method string CloudStack API method
return Closure
    public function getResponseCallback($method)
    {
        $responseMock = $this->getQueryClientResponseMock($this->getFixtureFileContent($method . '.json'), $method);
        return function () use($responseMock) {
            return $responseMock;
        };
    }