1..47 # ->configure() ok 1 - ->configure() can add some options ok 2 - ->configure() takes an options array as its first argument and values override default option values ok 3 - ->configure() can add some message ok 4 - ->configure() takes a messages array as its second argument and values override default message values ok 5 - __construct() throws an InvalidArgumentException if you pass some non existant options ok 6 - The exception contains the non existant option names ok 7 - __construct() throws an InvalidArgumentException if you pass some non existant error codes ok 8 - The exception contains the non existant error codes # getRequiredOptions ok 9 - ->getRequiredOptions() returns an array of required option names ok 10 - __construct() throws an RuntimeException if you don't pass a required option # ->clean() ok 11 - ->clean() returns a cleanup version of the data to validate ok 12 - ->clean() throws a sfValidatorError exception if the data does not validate ok 13 - ->clean() throws a sfValidatorError ok 14 - ->clean() does not trim whitespaces by default # ->isEmpty() ok 15 - null value isEmpty() ok 16 - empty string value isEmpty() ok 17 - empty array value isEmpty() ok 18 - false value not isEmpty() # ->getEmptyValue() ok 19 - ->getEmptyValue() returns the representation of an empty value for this validator # ->setOption() ok 20 - ->setOption() changes options (required for example) ok 21 - ->setOption() can turn on whitespace trimming ok 22 - ->setOption() throws an InvalidArgumentException if the option is not registered # ->hasOption() ok 23 - ->hasOption() returns true if the validator has the option ok 24 - ->hasOption() returns false if the validator does not have the option # ->getOption() ok 25 - ->getOption() returns the value of an option ok 26 - ->getOption() returns null if the option does not exist # ->addOption() ok 27 - ->addOption() adds a new option to a validator # ->getOptions() ->setOptions() ok 28 - ->setOptions() changes all options # ->getMessages() ok 29 - ->getMessages() returns an array of all error messages # ->getMessage() ok 30 - ->getMessage() returns an error message string ok 31 - ->getMessage() returns an empty string if the message does not exist # ->setMessage() ok 32 - ->setMessage() changes the default error message string ok 33 - ->setMessage() throws an InvalidArgumentException if the message is not registered # ->setMessages() ok 34 - ->setMessages() changes all error messages # ->addMessage() ok 35 - ->addMessage() adds a new error code # ->getErrorCodes() ok 36 - ->getErrorCodes() returns an array of error codes the validator can use # ::getCharset() ::setCharset() ok 37 - ::getCharset() returns the charset to use for validators ok 38 - ::setCharset() changes the charset to use for validators # ->asString() ok 39 - ->asString() returns a string representation of the validator ok 40 - ->asString() returns a string representation of the validator ok 41 - ->asString() returns a string representation of the validator ok 42 - ->asString() returns a string representation of the validator # ::setDefaultMessage() ok 43 - ::setDefaultMessage() sets the default message for an error ok 44 - ::setDefaultMessage() sets the default message for an error ok 45 - ::setDefaultMessage() sets the default message for an error ok 46 - ::setDefaultMessage() is ignored if the validator explicitly overrides the message ok 47 - ::setDefaultMessage() is ignored if the validator explicitly overrides the message # Looks like everything went fine.