PHP Класс lithium\tests\cases\util\ValidatorTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
setUp ( )
tearDown ( )
testAddCustomRegexFormats ( ) Tests that new formats can be added to existing regex methods using Validator::add().
testAddCustomRegexMethods ( ) Tests that new methods can be called on Validator by adding rules using Validator::add().
testAlphaNumeric ( ) Tests the the 'alphaNumeric' rule validates correct values.
testBooleanValidation ( )
testCheckAny ( ) Verifies that if validating with _any_, any format for a rule will match. See issue #888 for more information.
testCheckHasErrors ( )
testCheckMultipleHasErrors ( )
testCheckMultipleHasFirstError ( )
testCheckMultipleHasOneError ( )
testCheckMultiplePasses ( )
testCheckPasses ( )
testCheckSkipEmpty ( )
testCheckWithLastRule ( )
testCreditCardValidation ( ) Tests credit card validation for numbers in various vendors' formats.
testCustomMethodDispatching ( ) Tests static method call routing to enable patterns defined in Validator::$_rules to be called as methods.
testCustomWithFormat ( )
testDateValidation ( )
testDecimal ( ) Test basic decimal number validation.
testDecimalWithPlaces ( ) Test decimal validation with precision specified.
testEmailDomainCheckBadMxrr ( )
testEmailDomainCheckGoodMxrr ( ) Tests email address validation, with additional hostname lookup
testEmailValidation ( )
testEvents ( ) Tests that event flags applied to rules only trigger when the corresponding event is passed in the $options parameter of check().
testFieldOption ( )
testInList ( ) Tests 'inList' validation.
testIsInRange ( )
testIsLengthBetweenRule ( ) Tests the the 'lengthBetween' rule validates correct values.
testIsNumericRule ( )
testIsRegex ( ) Tests the regular expression validation for various regex delimiters
testNestedFields ( ) Tests validating nested fields using dot-separated paths.
testNotEmptyRule ( ) Tests that the 'notEmpty' rule validates correct values
testPrefilterMethodAccess ( )
testRegexContainment ( ) Tests that setting the 'contain' rule option to false correctly requires a string to be an exact match of the regex, with no additional characters outside.
testRespondsToMagic ( )
testRespondsToParentCall ( )
testRuleFormatMessageOnly ( )
testStateReset ( ) Tests that the rules state is reset when calling Validator::reset().
testUuid ( ) Tests that valid and invalid UUIDs are properly detected.
testValidationWithContextData ( )

Описание методов

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

testAddCustomRegexFormats() публичный Метод

Tests that new formats can be added to existing regex methods using Validator::add().

testAddCustomRegexMethods() публичный Метод

Tests that new methods can be called on Validator by adding rules using Validator::add().

testAlphaNumeric() публичный Метод

Tests the the 'alphaNumeric' rule validates correct values.
public testAlphaNumeric ( )

testBooleanValidation() публичный Метод

testCheckAny() публичный Метод

Verifies that if validating with _any_, any format for a rule will match. See issue #888 for more information.
public testCheckAny ( )

testCheckHasErrors() публичный Метод

public testCheckHasErrors ( )

testCheckMultipleHasErrors() публичный Метод

testCheckMultipleHasFirstError() публичный Метод

testCheckMultipleHasOneError() публичный Метод

testCheckMultiplePasses() публичный Метод

testCheckPasses() публичный Метод

public testCheckPasses ( )

testCheckSkipEmpty() публичный Метод

public testCheckSkipEmpty ( )

testCheckWithLastRule() публичный Метод

testCreditCardValidation() публичный Метод

Tests credit card validation for numbers in various vendors' formats.

testCustomMethodDispatching() публичный Метод

Tests static method call routing to enable patterns defined in Validator::$_rules to be called as methods.

testCustomWithFormat() публичный Метод

testDateValidation() публичный Метод

public testDateValidation ( )

testDecimal() публичный Метод

Test basic decimal number validation.
public testDecimal ( )

testDecimalWithPlaces() публичный Метод

Test decimal validation with precision specified.

testEmailDomainCheckBadMxrr() публичный Метод

testEmailDomainCheckGoodMxrr() публичный Метод

Tests email address validation, with additional hostname lookup

testEmailValidation() публичный Метод

public testEmailValidation ( )

testEvents() публичный Метод

Tests that event flags applied to rules only trigger when the corresponding event is passed in the $options parameter of check().
public testEvents ( )

testFieldOption() публичный Метод

public testFieldOption ( )

testInList() публичный Метод

Tests 'inList' validation.
public testInList ( )

testIsInRange() публичный Метод

public testIsInRange ( )

testIsLengthBetweenRule() публичный Метод

Tests the the 'lengthBetween' rule validates correct values.

testIsNumericRule() публичный Метод

public testIsNumericRule ( )

testIsRegex() публичный Метод

Tests the regular expression validation for various regex delimiters
public testIsRegex ( )

testNestedFields() публичный Метод

Tests validating nested fields using dot-separated paths.
public testNestedFields ( )

testNotEmptyRule() публичный Метод

Tests that the 'notEmpty' rule validates correct values
public testNotEmptyRule ( )

testPrefilterMethodAccess() публичный Метод

testRegexContainment() публичный Метод

Tests that setting the 'contain' rule option to false correctly requires a string to be an exact match of the regex, with no additional characters outside.

testRespondsToMagic() публичный Метод

public testRespondsToMagic ( )

testRespondsToParentCall() публичный Метод

testRuleFormatMessageOnly() публичный Метод

testStateReset() публичный Метод

Tests that the rules state is reset when calling Validator::reset().
public testStateReset ( )

testUuid() публичный Метод

Tests that valid and invalid UUIDs are properly detected.
public testUuid ( )

testValidationWithContextData() публичный Метод