Method | Description | |
---|---|---|
getAwsClassName ( string $suffix ) : string | Gets Aws class name | |
getAwsMock ( ) : |
Gets an Aws mock | |
getCloudFrontClassName ( string $suffix ) : string | Gets CloudFront class name | |
getContainer ( ) : |
Gets DI Container | |
getEc2ClassName ( string $suffix ) : string | Gets Ec2 class name | |
getEnvironment ( ) : Scalr_Environment | Gets Environment | |
getFixtureFileContent ( string $filename ) : string | Gets fixture file content | |
getFixtureFilePath ( string $filename ) : string | Returns fixtures file path | |
getFixturesDirectory ( ) | ||
getQueryClientResponseMock ( string $body, integer $responseCode = null, |
Gets QueryClientResponse Mock. | |
getQueryClientStandartCallResponseMock ( string $method ) : Scalr\Service\Aws\Client\QueryClientResponse | Gets standart query client response mock | |
getRdsClassName ( string $suffix ) : string | Gets Rds class name | |
getRoute53ClassName ( string $suffix ) : string | Gets Route53 class name | |
getServiceInterfaceMock ( string $serviceName, Closure | callback | string $callback = null ) : Scalr\Service\Aws\ServiceInterface | Gets an service interface mock object | |
providerClientType ( ) : array | Data provider for client type tests |
Method | Description | |
---|---|---|
setUp ( ) | ||
skipIfEc2PlatformDisabled ( ) | Skips test functionals tests are skipped or if Ec2 platform is not enabled. | |
tearDown ( ) |
public getAwsClassName ( string $suffix ) : string | ||
$suffix | string | |
return | string | Returns Aws class name strted with Namespace Scalr\\Service\\Aws\\ |
public getAwsMock ( ) : |
||
return | Returns Aws Mock stub |
public getCloudFrontClassName ( string $suffix ) : string | ||
$suffix | string | Suffix |
return | string |
public getContainer ( ) : |
||
return |
public getEc2ClassName ( string $suffix ) : string | ||
$suffix | string | Suffix |
return | string |
public getEnvironment ( ) : Scalr_Environment | ||
return | Scalr_Environment |
public getFixtureFileContent ( string $filename ) : string | ||
$filename | string | A fixture file name |
return | string | Returns fixture file content |
public getFixtureFilePath ( string $filename ) : string | ||
$filename | string | A fixture file name |
return | string | Returns fixtures file path |
public getQueryClientResponseMock ( string $body, integer $responseCode = null, |
||
$body | string | |
$responseCode | integer | optional The code of the http response |
$awsStub | optional Aws mock | |
return | Scalr\Service\Aws\Client\QueryClientResponse | Returns response mock object |
public getQueryClientStandartCallResponseMock ( string $method ) : Scalr\Service\Aws\Client\QueryClientResponse | ||
$method | string | AWS API action name |
return | Scalr\Service\Aws\Client\QueryClientResponse | Returns QueryClientResponse Mock object |
public getRdsClassName ( string $suffix ) : string | ||
$suffix | string | Suffix |
return | string |
public getRoute53ClassName ( string $suffix ) : string | ||
$suffix | string | Suffix |
return | string |
public getServiceInterfaceMock ( string $serviceName, Closure | callback | string $callback = null ) : Scalr\Service\Aws\ServiceInterface | ||
$serviceName | string | Service name (Elb, CloudWatch etc..) |
$callback | Closure | callback | string | optional callback for QueryClientResponse mock |
return | Scalr\Service\Aws\ServiceInterface | Returns service interface mock |
public providerClientType ( ) : array | ||
return | array |
protected skipIfEc2PlatformDisabled ( ) |