PHP Class Respect\Validation\Rules\OptionalTest

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

Public Methods

Method Description
providerForNotOptional ( )
providerForOptional ( )
testShouldAcceptInstanceOfValidatobleOnConstructor ( )
testShouldAssertRuleWhenInputIsNotOptional ( )
testShouldCheckRuleWhenInputIsNotOptional ( )
testShouldNotAssertRuleWhenInputIsOptional ( )
testShouldNotCheckRuleWhenInputIsOptional ( )
testShouldNotValidateRuleWhenInputIsOptional ( $input )
testShouldValidateRuleWhenInputIsNotOptional ( $input )

Method Details

providerForNotOptional() public method

providerForOptional() public method

public providerForOptional ( )

testShouldAcceptInstanceOfValidatobleOnConstructor() public method

testShouldAssertRuleWhenInputIsNotOptional() public method

testShouldCheckRuleWhenInputIsNotOptional() public method

testShouldNotAssertRuleWhenInputIsOptional() public method

testShouldNotCheckRuleWhenInputIsOptional() public method

testShouldNotValidateRuleWhenInputIsOptional() public method

testShouldValidateRuleWhenInputIsNotOptional() public method