PHP Class Respect\Validation\Rules\FactorTest

Author: David Meister ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: respect/validation

Public Methods

Method Description
providerForInvalidFactor ( )
providerForInvalidFactorDividend ( )
providerForValidFactor ( )
testInvalidDividentShouldThrowComponentException ( $dividend, $input )
testInvalidFactorShouldThrowFactorException ( $dividend, $input )
testValidFactorShouldReturnTrue ( $dividend, $input )

Private Methods

Method Description
generateNegativeCombinations ( $tests )
generateStringAndFloatCombinations ( $tests )
randomFloatBeweenZeroAndOne ( )
thingsThatAreNotIntegers ( )

Method Details

providerForInvalidFactor() public method

providerForInvalidFactorDividend() public method

providerForValidFactor() public method

testInvalidDividentShouldThrowComponentException() public method

testInvalidFactorShouldThrowFactorException() public method

public testInvalidFactorShouldThrowFactorException ( $dividend, $input )

testValidFactorShouldReturnTrue() public method

public testValidFactorShouldReturnTrue ( $dividend, $input )