You are here

public function GreaterThanOrEqualValidatorTest::provideInvalidComparisons in Plug 7

Return value

array

Overrides AbstractComparisonValidatorTestCase::provideInvalidComparisons

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideInvalidComparisons() {
  return array(
    array(
      1,
      '1',
      2,
      '2',
      'integer',
    ),
    array(
      new \DateTime('2000/01/01'),
      'Jan 1, 2000, 12:00 AM',
      new \DateTime('2005/01/01'),
      'Jan 1, 2005, 12:00 AM',
      'DateTime',
    ),
    array(
      new \DateTime('2000/01/01'),
      'Jan 1, 2000, 12:00 AM',
      '2005/01/01',
      'Jan 1, 2005, 12:00 AM',
      'DateTime',
    ),
    array(
      new \DateTime('2000/01/01 UTC'),
      'Jan 1, 2000, 12:00 AM',
      '2005/01/01 UTC',
      'Jan 1, 2005, 12:00 AM',
      'DateTime',
    ),
    array(
      'b',
      '"b"',
      'c',
      '"c"',
      'string',
    ),
  );
}