PHP Class Jyxo\Input\ValidatorTest

Author: Jan Pěček
Author: Jaroslav Hanslík
Author: Ondřej Nešpor
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
testCallStatic ( ) Tests static call usage.
testCallback ( ) Tests Callback validator.
testEquals ( ) Tests Equals validator.
testInArray ( ) Tests Tests InArray validator.
testIsArray ( ) Tests Tests IsArray validator.
testIsBirthNumber ( ) Tests IsBirthNumber validator.
testIsCompanyId ( ) Tests IsCompanyId validator.
testIsCountryCode ( ) Tests IsCountryCode validator.
testIsDate ( ) Tests IsDate validator.
testIsDateTime ( ) Tests IsDateTime validator.
testIsEmail ( ) Tests IsEmail validator.
testIsInt ( ) Tests IsInt validator.
testIsIpV4 ( ) Tests IsIpV4 validator.
testIsIpV6 ( ) Tests IsIpV6 validator.
testIsNumeric ( ) Tests IsNumeric validator.
testIsPhone ( ) Tests IsPhone validator.
testIsTaxId ( ) Tests IsTaxId validator.
testIsUrl ( ) Tests IsUrl validator.
testIsZipCode ( ) Tests IsZipCode validator.
testLessThan ( ) Tests LessThan validator.
testNotEmpty ( ) Tests NotEmpty validator.
testRegex ( ) Tests Regex validator.
testStringLengthGreaterThan ( ) Tests StringLengthGraterThan validator.
testStringLengthLessThan ( ) Tests StringLengthLessThan validator.

Private Methods

Method Description
executeTests ( Jyxo\Input\ValidatorInterface $validator, array $good, array $wrong ) Tests right values.
getGoodValues ( array $good ) : array Prepares right values for validation - shuffles the array

Method Details

testCallStatic() public method

Tests static call usage.
public testCallStatic ( )

testCallback() public method

Tests Callback validator.
public testCallback ( )

testEquals() public method

Tests Equals validator.
public testEquals ( )

testInArray() public method

Tests Tests InArray validator.
public testInArray ( )

testIsArray() public method

Tests Tests IsArray validator.
public testIsArray ( )

testIsBirthNumber() public method

Tests IsBirthNumber validator.
public testIsBirthNumber ( )

testIsCompanyId() public method

Tests IsCompanyId validator.
public testIsCompanyId ( )

testIsCountryCode() public method

Tests IsCountryCode validator.
public testIsCountryCode ( )

testIsDate() public method

Tests IsDate validator.
public testIsDate ( )

testIsDateTime() public method

Tests IsDateTime validator.
public testIsDateTime ( )

testIsEmail() public method

Tests IsEmail validator.
public testIsEmail ( )

testIsInt() public method

Tests IsInt validator.
public testIsInt ( )

testIsIpV4() public method

Tests IsIpV4 validator.
public testIsIpV4 ( )

testIsIpV6() public method

Tests IsIpV6 validator.
public testIsIpV6 ( )

testIsNumeric() public method

Tests IsNumeric validator.
public testIsNumeric ( )

testIsPhone() public method

Tests IsPhone validator.
public testIsPhone ( )

testIsTaxId() public method

Tests IsTaxId validator.
public testIsTaxId ( )

testIsUrl() public method

Tests IsUrl validator.
public testIsUrl ( )

testIsZipCode() public method

Tests IsZipCode validator.
public testIsZipCode ( )

testLessThan() public method

Tests LessThan validator.
public testLessThan ( )

testNotEmpty() public method

Tests NotEmpty validator.
public testNotEmpty ( )

testRegex() public method

Tests Regex validator.
public testRegex ( )

testStringLengthGreaterThan() public method

Tests StringLengthGraterThan validator.

testStringLengthLessThan() public method

Tests StringLengthLessThan validator.