PHP Class Psecio\PropAuth\Test\TestClosure

Inheritance: extends Psecio\PropAuth\Test
Show file Open project: psecio/propauth Class Usage Examples

Protected Methods

Method Description
evaluateEquals ( string $value, string $compare ) : boolean Evaluate that the method result is true (not equals)
evaluateNotEquals ( string $value, string $compare ) : boolean Evaluate that the method result is false (not equals)

Private Methods

Method Description
executeClosure ( Closure $value ) : boolean Execute the closure, passing in the additional data as arguments

Method Details

evaluateEquals() protected method

Evaluate that the method result is true (not equals)
protected evaluateEquals ( string $value, string $compare ) : boolean
$value string Value for evaluation
$compare string Value to compare against
return boolean Pass/fail result of test (method result)

evaluateNotEquals() protected method

Evaluate that the method result is false (not equals)
protected evaluateNotEquals ( string $value, string $compare ) : boolean
$value string Value for evaluation
$compare string Value to compare against
return boolean Pass/fail result of test (method result)