public function NotIdenticalToValidatorTest::provideValidComparisons in Plug 7
Return value
array
Overrides AbstractComparisonValidatorTestCase::provideValidComparisons
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ NotIdenticalToValidatorTest.php, line 41
Class
- NotIdenticalToValidatorTest
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideValidComparisons() {
return array(
array(
1,
2,
),
array(
'2',
2,
),
array(
'22',
'333',
),
array(
new \DateTime('2001-01-01'),
new \DateTime('2000-01-01'),
),
array(
new \DateTime('2000-01-01'),
new \DateTime('2000-01-01'),
),
array(
new \DateTime('2001-01-01'),
'2000-01-01',
),
array(
new \DateTime('2000-01-01'),
'2000-01-01',
),
array(
new \DateTime('2001-01-01'),
'2000-01-01',
),
array(
new \DateTime('2000-01-01 UTC'),
'2000-01-01 UTC',
),
array(
null,
1,
),
);
}