You are here

public function GreaterThanOrEqualValidatorTest::provideValidComparisons in Plug 7

Return value

array

Overrides AbstractComparisonValidatorTestCase::provideValidComparisons

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideValidComparisons() {
  return array(
    array(
      3,
      2,
    ),
    array(
      1,
      1,
    ),
    array(
      new \DateTime('2010/01/01'),
      new \DateTime('2000/01/01'),
    ),
    array(
      new \DateTime('2000/01/01'),
      new \DateTime('2000/01/01'),
    ),
    array(
      new \DateTime('2010/01/01'),
      '2000/01/01',
    ),
    array(
      new \DateTime('2000/01/01'),
      '2000/01/01',
    ),
    array(
      new \DateTime('2010/01/01 UTC'),
      '2000/01/01 UTC',
    ),
    array(
      new \DateTime('2000/01/01 UTC'),
      '2000/01/01 UTC',
    ),
    array(
      'a',
      'a',
    ),
    array(
      'z',
      'a',
    ),
    array(
      null,
      1,
    ),
  );
}