PHP Trait Eris\TestTrait

Show file Open project: giorgiosironi/eris

Protected Properties

Property Type Description
$seed
$shrinkingTimeLimit

Public Methods

Method Description
erisSetup ( )
erisSetupBeforeClass ( )
erisTeardown ( )

Protected Methods

Method Description
forAll ( ) : ForAll forAll($generator1, $generator2, .
limitTo ( $limit ) : self
minimumEvaluationRatio ( $ratio ) : self
sample ( eris\Generator $generator, $times = 10 ) : Sample
sampleShrink ( eris\Generator $generator, $fromValue = null ) : Sample
shrinkingTimeLimit ( $shrinkingTimeLimit ) : self The maximum time to spend trying to shrink the input after a failed test.
withRand ( $randFunction ) : self

Private Methods

Method Description
dumpSeedForReproducing ( ) Maybe: we could add --filter options to the command here, since now the original command is printed.
filterOutListenersOfClass ( $className )
seedingRandomNumberGeneration ( )

Method Details

erisSetup() public method

public erisSetup ( )

erisSetupBeforeClass() public static method

public static erisSetupBeforeClass ( )

erisTeardown() public method

public erisTeardown ( )

forAll() protected method

..)
protected forAll ( ) : ForAll
return Eris\Quantifier\ForAll

limitTo() protected method

protected limitTo ( $limit ) : self
return self

minimumEvaluationRatio() protected method

protected minimumEvaluationRatio ( $ratio ) : self
return self

sample() protected method

protected sample ( eris\Generator $generator, $times = 10 ) : Sample
$generator eris\Generator
return Sample

sampleShrink() protected method

protected sampleShrink ( eris\Generator $generator, $fromValue = null ) : Sample
$generator eris\Generator
return Sample

shrinkingTimeLimit() protected method

The default is no limit.
protected shrinkingTimeLimit ( $shrinkingTimeLimit ) : self
return self

withRand() protected method

protected withRand ( $randFunction ) : self
return self

Property Details

$seed protected property

protected $seed

$shrinkingTimeLimit protected property

protected $shrinkingTimeLimit