PHP 클래스 Scalr\Tests\TestCase

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

공개 프로퍼티들

프로퍼티 타입 설명
$dbLog

공개 메소드들

메소드 설명
assertArrayHas ( mixed $value, string $key, array | ArrayAccess $arr, string $message = '' ) Constraints that array has key and value
assertSubClassOf ( string $className, object $object, string $message = '' ) Constraints that object is sub-class of the specified class
camelize ( string $input ) : string Camelizes string
disableDbLog ( ) Disables mysql log
enableDbLog ( ) Enables mysql log
getAccessibleMethod ( object $object, string $method ) : ReflectionMethod Gets reflection method for the specified object
getAccessibleProperty ( object $object, string $property ) : ReflectionProperty Gets reflection property for the specified object
getDbLog ( ) : array Gets mysql database log
getFixturesDirectory ( ) : string Returns fixtures directory
getTestName ( string $suffix = '' ) : string Gets test name
isSkippedFunctionalTest ( string $type = null ) : boolean Returns true if functional tests should be skipped.

보호된 메소드들

메소드 설명
getInstallationId ( ) : string Retrieves ID of the Scalr installation.
getSessionId ( ) : string Retrieves unique session id.
runTest ( )
setUp ( )
tearDown ( )

메소드 상세

assertArrayHas() 공개 정적인 메소드

Constraints that array has key and value
public static assertArrayHas ( mixed $value, string $key, array | ArrayAccess $arr, string $message = '' )
$value mixed Expected array value
$key string Expected array key
$arr array | ArrayAccess An array which needs to be evaluated
$message string Message

assertSubClassOf() 공개 정적인 메소드

Constraints that object is sub-class of the specified class
public static assertSubClassOf ( string $className, object $object, string $message = '' )
$className string The name of the class
$object object The object to check
$message string optional The message

camelize() 공개 메소드

Camelizes string
public camelize ( string $input ) : string
$input string
리턴 string Returns camelized string

disableDbLog() 공개 정적인 메소드

Disables mysql log
public static disableDbLog ( )

enableDbLog() 공개 정적인 메소드

Enables mysql log
public static enableDbLog ( )

getAccessibleMethod() 공개 정적인 메소드

Gets reflection method for the specified object
public static getAccessibleMethod ( object $object, string $method ) : ReflectionMethod
$object object Object
$method string Private or Protected Method name
리턴 ReflectionMethod Returns reflection method for provided object with setAccessible property

getAccessibleProperty() 공개 정적인 메소드

Gets reflection property for the specified object
public static getAccessibleProperty ( object $object, string $property ) : ReflectionProperty
$object object Object
$property string Private or protected property name
리턴 ReflectionProperty Returns reflection property for provided object with setAccessible property

getDbLog() 공개 정적인 메소드

Gets mysql database log
public static getDbLog ( ) : array
리턴 array Returns logged sql queries

getFixturesDirectory() 공개 메소드

Returns fixtures directory
public getFixturesDirectory ( ) : string
리턴 string Returns fixtures directory without trailing slash

getInstallationId() 보호된 정적인 메소드

It is used for isolation the functional tests of third party services like AWS, OpenStack ... etc
protected static getInstallationId ( ) : string
리턴 string Returns ID of the Scalr installation

getSessionId() 보호된 정적인 메소드

This number is unique per each test execution.
protected static getSessionId ( ) : string
리턴 string Returns unique session id.

getTestName() 공개 정적인 메소드

Gets test name
public static getTestName ( string $suffix = '' ) : string
$suffix string optional Name suffix
리턴 string Returns test name

isSkippedFunctionalTest() 공개 정적인 메소드

Returns true if functional tests should be skipped.
public static isSkippedFunctionalTest ( string $type = null ) : boolean
$type string optional The type of the test ui, api, cloud-dependent. If option is not provided it will try to resolve static::TEST_TYPE constant
리턴 boolean Returns true if functional tests should be skipped.

runTest() 보호된 메소드

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

setUp() 보호된 메소드

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

tearDown() 보호된 메소드

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

프로퍼티 상세

$dbLog 공개적으로 정적으로 프로퍼티

public static $dbLog