PHP Class PHPUnit\Runner\CleverAndSmart\Util

显示文件 Open project: lstrojny/phpunit-clever-and-smart Class Usage Examples

Public Methods

Method Description
createRunId ( ) : string Create unique run ID
getInvisibleProperty ( object $object, string $propertyName, string $methodName = null ) : mixed Get an invisible property from an object (private or protected)
setInvisibleProperty ( object $object, string $propertyName, mixed $value, string $methodName = null ) Set an invisible property from an object (private or protected)

Private Methods

Method Description
getPropertyReflection ( object $object, string $propertyName ) : ReflectionProperty Get proper PropertyReflection object

Method Details

createRunId() public static method

Create unique run ID
public static createRunId ( ) : string
return string

getInvisibleProperty() public static method

Get an invisible property from an object (private or protected)
public static getInvisibleProperty ( object $object, string $propertyName, string $methodName = null ) : mixed
$object object
$propertyName string
$methodName string
return mixed

setInvisibleProperty() public static method

Set an invisible property from an object (private or protected)
public static setInvisibleProperty ( object $object, string $propertyName, mixed $value, string $methodName = null )
$object object
$propertyName string
$value mixed
$methodName string