PHP 클래스 Scalr\Tests\Service\AwsTestCase

부터: 19.10.2012
저자: Vitaliy Demidov ([email protected])
상속: extends Scalr\Tests\TestCase
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
getAwsClassName ( string $suffix ) : string Gets Aws class name
getAwsMock ( ) : Aws Gets an Aws mock
getCloudFrontClassName ( string $suffix ) : string Gets CloudFront class name
getContainer ( ) : Container 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, Aws $awsStub = null ) : Scalr\Service\Aws\Client\QueryClientResponse 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

보호된 메소드들

메소드 설명
setUp ( )
skipIfEc2PlatformDisabled ( ) Skips test functionals tests are skipped or if Ec2 platform is not enabled.
tearDown ( )

메소드 상세

getAwsClassName() 공개 메소드

Gets Aws class name
public getAwsClassName ( string $suffix ) : string
$suffix string
리턴 string Returns Aws class name strted with Namespace Scalr\\Service\\Aws\\

getAwsMock() 공개 메소드

Gets an Aws mock
public getAwsMock ( ) : Aws
리턴 Scalr\Service\Aws Returns Aws Mock stub

getCloudFrontClassName() 공개 메소드

Gets CloudFront class name
public getCloudFrontClassName ( string $suffix ) : string
$suffix string Suffix
리턴 string

getContainer() 공개 메소드

Gets DI Container
public getContainer ( ) : Container
리턴 Scalr\DependencyInjection\Container

getEc2ClassName() 공개 메소드

Gets Ec2 class name
public getEc2ClassName ( string $suffix ) : string
$suffix string Suffix
리턴 string

getEnvironment() 공개 메소드

Gets Environment
public getEnvironment ( ) : Scalr_Environment
리턴 Scalr_Environment

getFixtureFileContent() 공개 메소드

Gets fixture file content
public getFixtureFileContent ( string $filename ) : string
$filename string A fixture file name
리턴 string Returns fixture file content

getFixtureFilePath() 공개 메소드

Returns fixtures file path
public getFixtureFilePath ( string $filename ) : string
$filename string A fixture file name
리턴 string Returns fixtures file path

getFixturesDirectory() 공개 메소드

getQueryClientResponseMock() 공개 메소드

Gets QueryClientResponse Mock.
public getQueryClientResponseMock ( string $body, integer $responseCode = null, Aws $awsStub = null ) : Scalr\Service\Aws\Client\QueryClientResponse
$body string
$responseCode integer optional The code of the http response
$awsStub Scalr\Service\Aws optional Aws mock
리턴 Scalr\Service\Aws\Client\QueryClientResponse Returns response mock object

getQueryClientStandartCallResponseMock() 공개 메소드

Gets standart query client response mock
public getQueryClientStandartCallResponseMock ( string $method ) : Scalr\Service\Aws\Client\QueryClientResponse
$method string AWS API action name
리턴 Scalr\Service\Aws\Client\QueryClientResponse Returns QueryClientResponse Mock object

getRdsClassName() 공개 메소드

Gets Rds class name
public getRdsClassName ( string $suffix ) : string
$suffix string Suffix
리턴 string

getRoute53ClassName() 공개 메소드

Gets Route53 class name
public getRoute53ClassName ( string $suffix ) : string
$suffix string Suffix
리턴 string

getServiceInterfaceMock() 공개 메소드

Gets an service interface mock object
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
리턴 Scalr\Service\Aws\ServiceInterface Returns service interface mock

providerClientType() 공개 메소드

Data provider for client type tests
public providerClientType ( ) : array
리턴 array

setUp() 보호된 메소드

또한 보기: PHPUnit_Framework_TestCase::setUp()
protected setUp ( )

skipIfEc2PlatformDisabled() 보호된 메소드

Skips test functionals tests are skipped or if Ec2 platform is not enabled.

tearDown() 보호된 메소드

또한 보기: PHPUnit_Framework_TestCase::tearDown()
protected tearDown ( )