PHP Class Respect\Validation\Rules\WhenTest

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

Public Methods

Method Description
providerForInvalidInput ( ) : array
providerForValidInput ( ) : array It is to provide constructor arguments and.
testShouldConstructAnObjectWithElseRule ( )
testShouldConstructAnObjectWithoutElseRule ( )
testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnAssertMethod ( )
testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnCheckMethod ( )
testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnAssertMethod ( )
testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnCheckMethod ( )

Method Details

providerForInvalidInput() public method

public providerForInvalidInput ( ) : array
return array

providerForValidInput() public method

It is to provide constructor arguments and.
public providerForValidInput ( ) : array
return array

testShouldConstructAnObjectWithElseRule() public method

testShouldConstructAnObjectWithoutElseRule() public method

testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnAssertMethod() public method

testShouldThrowExceptionForTheElseRuleWhenTheIfRuleIsNotValidAndTheElseRuleIsNotOnCheckMethod() public method

testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnAssertMethod() public method

testShouldThrowExceptionForTheThenRuleWhenTheIfRuleIsValidAndTheThenRuleIsNotOnCheckMethod() public method