You are here

public function DateTimeValidatorTest::testValidDateTimes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/DateTimeValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\DateTimeValidatorTest::testValidDateTimes()

@dataProvider getValidDateTimes

File

vendor/symfony/validator/Tests/Constraints/DateTimeValidatorTest.php, line 62

Class

DateTimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidDateTimes($dateTime) {
  $this->validator
    ->validate($dateTime, new DateTime());
  $this
    ->assertNoViolation();
}