You are here

public function GreaterThanValidatorTest::provideValidComparisons in Plug 7

Return value

array

Overrides AbstractComparisonValidatorTestCase::provideValidComparisons

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorTest.php, line 41

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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