PHP Class Respect\Validation\FactoryTest

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

Public Methods

Method Description
provideRulePrefixes ( )
testShouldBeAbleToAppendANewPrefix ( $namespace, $expectedNamespace )
testShouldBeAbleToPrependANewRulePrefix ( $namespace, $expectedNamespace )
testShouldCreateARuleByName ( )
testShouldDefineConstructorArgumentsWhenCreatingARule ( )
testShouldHaveRulePrefixesByDefault ( )
testShouldThrowsAnExceptionWhenRuleIsNotInstanceOfRuleInterface ( )
testShouldThrowsAnExceptionWhenRuleNameIsNotValid ( )

Method Details

provideRulePrefixes() public method

public provideRulePrefixes ( )

testShouldBeAbleToAppendANewPrefix() public method

public testShouldBeAbleToAppendANewPrefix ( $namespace, $expectedNamespace )

testShouldBeAbleToPrependANewRulePrefix() public method

public testShouldBeAbleToPrependANewRulePrefix ( $namespace, $expectedNamespace )

testShouldCreateARuleByName() public method

testShouldDefineConstructorArgumentsWhenCreatingARule() public method

testShouldHaveRulePrefixesByDefault() public method

testShouldThrowsAnExceptionWhenRuleIsNotInstanceOfRuleInterface() public method

testShouldThrowsAnExceptionWhenRuleNameIsNotValid() public method