PHP 클래스 TestBase, paratest

파일 보기 프로젝트 열기: brianium/paratest 1 사용 예제들

공개 메소드들

메소드 설명
call ( Object $object, string $methodName, mixed $args = null ) : mixed Calls an object method even if it is protected or private
callStatic ( string $class, string $methodName, mixed $args = null ) : mixed Calls a class method even if it is protected or private

보호된 메소드들

메소드 설명
_callMethod ( $objectOrClassName, $methodName, $args = null )
copyCoverageFile ( string $fixture, string $directory = '/tmp' ) : string Copy fixture file to tmp folder, cause coverage file will be deleted by merger
findTests ( $dir )
fixture ( $fixture )
getObjectValue ( $object, $property )
getPhpUnitVersion ( ) : string Get PHPUnit version
removeDirectory ( string $dirname ) Remove dir and its files
setObjectValue ( $object, $property, $value )
skipIfCodeCoverageNotEnabled ( )

비공개 메소드들

메소드 설명
getAccessibleProperty ( $object, $property )

메소드 상세

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

protected static _callMethod ( $objectOrClassName, $methodName, $args = null )

call() 공개 메소드

Calls an object method even if it is protected or private
public call ( Object $object, string $methodName, mixed $args = null ) : mixed
$object Object the object to call a method on
$methodName string the method name to be called
$args mixed 0 or more arguments passed in the function
리턴 mixed returns what the object's method call will return

callStatic() 공개 메소드

Calls a class method even if it is protected or private
public callStatic ( string $class, string $methodName, mixed $args = null ) : mixed
$class string the class to call a method on
$methodName string the method name to be called
$args mixed 0 or more arguments passed in the function
리턴 mixed returns what the object's method call will return

copyCoverageFile() 보호된 메소드

Copy fixture file to tmp folder, cause coverage file will be deleted by merger
protected copyCoverageFile ( string $fixture, string $directory = '/tmp' ) : string
$fixture string Fixture coverage file name
$directory string
리턴 string Copied coverage file

findTests() 보호된 메소드

protected findTests ( $dir )

fixture() 보호된 메소드

protected fixture ( $fixture )

getObjectValue() 보호된 메소드

protected getObjectValue ( $object, $property )

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

Get PHPUnit version
protected static getPhpUnitVersion ( ) : string
리턴 string

removeDirectory() 보호된 메소드

Remove dir and its files
protected removeDirectory ( string $dirname )
$dirname string

setObjectValue() 보호된 메소드

protected setObjectValue ( $object, $property, $value )

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

protected static skipIfCodeCoverageNotEnabled ( )