PHP Class Neos\Flow\Tests\Unit\Validation\Validator\StringLengthValidatorTest

Inheritance: extends AbstractValidatorTestcase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$validator Neos\Flow\Validation\Validator\StringLengthValidator
$validatorClassName

Public Methods

Method Description
stringLengthValidatorCanHandleAnObjectWithAToStringMethod ( )
stringLengthValidatorInsertsAnErrorObjectIfValidationFails ( )
stringLengthValidatorReturnsErrorForAStringShorterThanThanMinLength ( )
stringLengthValidatorReturnsErrorsForAStringLongerThanThanMaxLength ( )
stringLengthValidatorReturnsNoErrorForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorForAStringShorterThanMaxLengthAndLongerThanMinLength ( )
stringLengthValidatorReturnsNoErrorIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue ( )
stringLengthValidatorReturnsNoErrorIfTheStringLengthIsEqualToMinLength ( )
stringLengthValidatorReturnsNoErrorsForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified ( )
stringLengthValidatorReturnsNoErrorsfTheStringLengthIsEqualToMaxLength ( )
stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength ( )
validateRegardsMultibyteStringsCorrectly ( )
validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString ( )
validateReturnsNoErrorIfTheGivenValueIsAnEmptyString ( )
validateReturnsNoErrorIfTheGivenValueIsNull ( )

Method Details

stringLengthValidatorCanHandleAnObjectWithAToStringMethod() public method

stringLengthValidatorInsertsAnErrorObjectIfValidationFails() public method

stringLengthValidatorReturnsErrorForAStringShorterThanThanMinLength() public method

stringLengthValidatorReturnsErrorsForAStringLongerThanThanMaxLength() public method

stringLengthValidatorReturnsNoErrorForAStringLengthEqualToMinLengthAndMaxLengthNotSpecified() public method

stringLengthValidatorReturnsNoErrorForAStringShorterThanMaxLengthAndLongerThanMinLength() public method

stringLengthValidatorReturnsNoErrorIfMinLengthAndMaxLengthAreEqualAndTheGivenStringMatchesThisValue() public method

stringLengthValidatorReturnsNoErrorIfTheStringLengthIsEqualToMinLength() public method

stringLengthValidatorReturnsNoErrorsForAStringLengthEqualToMaxLengthAndMinLengthNotSpecified() public method

stringLengthValidatorReturnsNoErrorsForAStringLongerThanThanMinLengthAndMaxLengthNotSpecified() public method

stringLengthValidatorReturnsNoErrorsForAStringShorterThanThanMaxLengthAndMinLengthNotSpecified() public method

stringLengthValidatorReturnsNoErrorsfTheStringLengthIsEqualToMaxLength() public method

stringLengthValidatorThrowsAnExceptionIfMinLengthIsGreaterThanMaxLength() public method

validateRegardsMultibyteStringsCorrectly() public method

validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString() public method

validateReturnsNoErrorIfTheGivenValueIsAnEmptyString() public method

validateReturnsNoErrorIfTheGivenValueIsNull() public method

Property Details

$validator protected property

protected StringLengthValidator,Neos\Flow\Validation\Validator $validator
return Neos\Flow\Validation\Validator\StringLengthValidator

$validatorClassName protected property

protected $validatorClassName