PHP Class Bluz\Tests\Validator\Rule\LengthTest

Inheritance: extends Bluz\Tests\TestCase
Show file Open project: bluzphp/framework

Public Methods

Method Description
providerForComponentException ( ) : array
providerForFail ( ) : array
providerForFailInclusive ( ) : array
providerForPass ( ) : array
testInvalidConstructorParametersShouldThrowComponentExceptionUponInstantiation ( $string, $min, $max )
testLengthInsideBoundsShouldReturnTrue ( $string, $min, $max )
testLengthOutsideBoundsShouldThrowLengthException ( $string, $min, $max )
testLengthOutsideValidBoundsShouldThrowLengthException ( $string, $min, $max )

Method Details

providerForComponentException() public method

providerForFail() public method

public providerForFail ( ) : array
return array

providerForFailInclusive() public method

public providerForFailInclusive ( ) : array
return array

providerForPass() public method

public providerForPass ( ) : array
return array

testInvalidConstructorParametersShouldThrowComponentExceptionUponInstantiation() public method

testLengthInsideBoundsShouldReturnTrue() public method

public testLengthInsideBoundsShouldReturnTrue ( $string, $min, $max )

testLengthOutsideBoundsShouldThrowLengthException() public method

public testLengthOutsideBoundsShouldThrowLengthException ( $string, $min, $max )

testLengthOutsideValidBoundsShouldThrowLengthException() public method