PHP 클래스 Scalr\Tests\Service\CloudStack\CloudStackTestCase

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

보호된 프로퍼티들

프로퍼티 타입 설명
$cloudstack Scalr\Service\CloudStack\CloudStack CloudStack instance

공개 메소드들

메소드 설명
getCloudStackClassName ( string $classSuffix ) : string Gets full class name by its suffix after CloudStack\\
getCloudStackFixtureClassName ( string $classSuffix ) : string Gets full FIXTURE class name by its suffix after CloudStack\\
getCloudStackMock ( string $serviceName = null, Closure | callback | string $callback = null ) : CloudStack Gets an CloudStack mock
getContainer ( ) : Container Gets DI Container
getEnvironment ( ) : Environment Gets Scalr Environment
getFixtureFileContent ( string $filename ) : string Gets fixture file content
getFixtureFilePath ( string $filename ) : string Returns fixtures file path
getFixturesDirectory ( )
getQueryClientResponseMock ( string $body, $command, integer $responseCode = null ) : QueryClientResponse Gets QueryClientResponse Mock.
getServiceInterfaceMock ( string $serviceName, CloudStack $csStub ) : ServiceInterface Gets an service interface mock object

보호된 메소드들

메소드 설명
setUp ( )
tearDown ( )

메소드 상세

getCloudStackClassName() 공개 메소드

Gets full class name by its suffix after CloudStack\\
public getCloudStackClassName ( string $classSuffix ) : string
$classSuffix string
리턴 string

getCloudStackFixtureClassName() 공개 메소드

Gets full FIXTURE class name by its suffix after CloudStack\\
public getCloudStackFixtureClassName ( string $classSuffix ) : string
$classSuffix string
리턴 string

getCloudStackMock() 공개 메소드

Gets an CloudStack mock
public getCloudStackMock ( string $serviceName = null, Closure | callback | string $callback = null ) : CloudStack
$serviceName string Service name (Network, Volume etc..)
$callback Closure | callback | string optional callback for QueryClientResponse mock
리턴 Scalr\Service\CloudStack\CloudStack Returns CloudStack Mock stub

getContainer() 공개 메소드

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

getEnvironment() 공개 메소드

Gets Scalr Environment
public getEnvironment ( ) : Environment
리턴 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, $command, integer $responseCode = null ) : QueryClientResponse
$body string
$responseCode integer optional The code of the http response
리턴 QueryClientResponse Returns response mock object

getServiceInterfaceMock() 공개 메소드

Gets an service interface mock object
public getServiceInterfaceMock ( string $serviceName, CloudStack $csStub ) : ServiceInterface
$serviceName string Service name (Network, Volume etc..)
$csStub Scalr\Service\CloudStack\CloudStack CloudStack Mock stub
리턴 ServiceInterface Returns service interface mock

setUp() 보호된 메소드

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

tearDown() 보호된 메소드

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

프로퍼티 상세

$cloudstack 보호되어 있는 프로퍼티

CloudStack instance
protected CloudStack,Scalr\Service\CloudStack $cloudstack
리턴 Scalr\Service\CloudStack\CloudStack