You are here

public function LessThanValidatorTest::provideValidComparisons in Zircon Profile 8.0

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

Return value

array

Overrides AbstractComparisonValidatorTestCase::provideValidComparisons

File

vendor/symfony/validator/Tests/Constraints/LessThanValidatorTest.php, line 41

Class

LessThanValidatorTest
@author Daniel Holmes <daniel@danielholmes.org>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideValidComparisons() {
  return array(
    array(
      1,
      2,
    ),
    array(
      new \DateTime('2000-01-01'),
      new \DateTime('2010-01-01'),
    ),
    array(
      new \DateTime('2000-01-01'),
      '2010-01-01',
    ),
    array(
      new \DateTime('2000-01-01 UTC'),
      '2010-01-01 UTC',
    ),
    array(
      new ComparisonTest_Class(4),
      new ComparisonTest_Class(5),
    ),
    array(
      '22',
      '333',
    ),
    array(
      null,
      1,
    ),
  );
}