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;
        };
    }