PHP Class Respect\Validation\Rules\DateTest

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

Protected Properties

Property Type Description
$dateValidator

Public Methods

Method Description
providerForDateTimeTimezoneStrings ( ) : array
testAnyObjectExceptDateTimeInstancesShouldFail ( )
testDateEmptyShouldNotAssert ( )
testDateEmptyShouldNotCheck ( )
testDateEmptyShouldNotValidate ( )
testDateTimeExceptionalFormatsThatShouldBeValid ( )
testDateTimeImmutableInterfaceInstancesShouldAlwaysValidate ( )
testDateTimeInstancesShouldAlwaysValidate ( )
testDateTimeSystemTimezoneIndependent ( string $systemTimezone, $format, string $input ) Test that datetime strings with timezone information are valid independent on the system's timezone setting.
testDateWithoutFormatShouldValidate ( )
testFormatsShouldValidateDateStrings ( )
testFormatsShouldValidateDateStrings_and_throw_DateException_on_failure ( )
testFormatsShouldValidateDateStrings_with_any_formats ( )
testInvalidDateShouldFail ( )
testInvalidDateShouldFail_on_invalid_conversions ( )

Protected Methods

Method Description
setUp ( )

Method Details

providerForDateTimeTimezoneStrings() public method

setUp() protected method

protected setUp ( )

testAnyObjectExceptDateTimeInstancesShouldFail() public method

testDateEmptyShouldNotAssert() public method

testDateEmptyShouldNotCheck() public method

testDateEmptyShouldNotValidate() public method

testDateTimeExceptionalFormatsThatShouldBeValid() public method

testDateTimeImmutableInterfaceInstancesShouldAlwaysValidate() public method

testDateTimeInstancesShouldAlwaysValidate() public method

testDateTimeSystemTimezoneIndependent() public method

Test that datetime strings with timezone information are valid independent on the system's timezone setting.
public testDateTimeSystemTimezoneIndependent ( string $systemTimezone, $format, string $input )
$systemTimezone string
$input string

testDateWithoutFormatShouldValidate() public method

testFormatsShouldValidateDateStrings() public method

testFormatsShouldValidateDateStrings_and_throw_DateException_on_failure() public method

testFormatsShouldValidateDateStrings_with_any_formats() public method

testInvalidDateShouldFail() public method

testInvalidDateShouldFail_on_invalid_conversions() public method

Property Details

$dateValidator protected property

protected $dateValidator