PHP Class Respect\Validation\Rules\TypeTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: respect/validation

Public Methods

Method Description
providerForInvalidType ( )
providerForValidType ( )
testShouldDefineTypeOnConstructor ( )
testShouldNotBeCaseSensitive ( )
testShouldNotValidateInvalidTypes ( $type, $input )
testShouldThrowExceptionWhenTypeIsNotValid ( )
testShouldThrowTypeExceptionWhenCheckingAnInvalidInput ( )
testShouldValidateValidTypes ( $type, $input )

Method Details

providerForInvalidType() public method

providerForValidType() public method

testShouldDefineTypeOnConstructor() public method

testShouldNotBeCaseSensitive() public method

testShouldNotValidateInvalidTypes() public method

public testShouldNotValidateInvalidTypes ( $type, $input )

testShouldThrowExceptionWhenTypeIsNotValid() public method

testShouldThrowTypeExceptionWhenCheckingAnInvalidInput() public method

testShouldValidateValidTypes() public method

public testShouldValidateValidTypes ( $type, $input )