Scalr\Tests\Service\Aws\CloudFrontTest::getResponseCallback PHP Method

getResponseCallback() public method

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