PHP Class PHPUnit\Runner\CleverAndSmart\Util

Afficher le fichier Open project: lstrojny/phpunit-clever-and-smart Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
getPropertyReflection ( object $object, string $propertyName ) : ReflectionProperty Get proper PropertyReflection object

Method Details

createRunId() public static méthode

Create unique run ID
public static createRunId ( ) : string
Résultat string

getInvisibleProperty() public static méthode

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
Résultat mixed

setInvisibleProperty() public static méthode

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