PHP Class QCheck\RoseTree

This implementation is based on clojure.test.check.rose-tree.
显示文件 Open project: steos/php-quickcheck Class Usage Examples

Public Methods

Method Description
__construct ( $root, $children )
bind ( callable $f )
filter ( callable $pred )
fmap ( callable $f )
getChildren ( )
getRoot ( )
join ( )
pure ( $val )
shrink ( callable $f, $roses )
zip ( callable $f, $roses )

Private Methods

Method Description
permutations ( array $roses )
remove ( array $roses )

Method Details

__construct() public method

public __construct ( $root, $children )

bind() public method

public bind ( callable $f )
$f callable

filter() public method

public filter ( callable $pred )
$pred callable

fmap() public method

public fmap ( callable $f )
$f callable

getChildren() public method

public getChildren ( )

getRoot() public method

public getRoot ( )

join() public method

public join ( )

pure() public static method

public static pure ( $val )

shrink() public static method

public static shrink ( callable $f, $roses )
$f callable

zip() public static method

public static zip ( callable $f, $roses )
$f callable