public function NotEqualToValidatorTest::provideValidComparisons in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/NotEqualToValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\NotEqualToValidatorTest::provideValidComparisons()
Return value
array
Overrides AbstractComparisonValidatorTestCase::provideValidComparisons
File
- vendor/
symfony/ validator/ Tests/ Constraints/ NotEqualToValidatorTest.php, line 41
Class
- NotEqualToValidatorTest
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideValidComparisons() {
return array(
array(
1,
2,
),
array(
'22',
'333',
),
array(
new \DateTime('2001-01-01'),
new \DateTime('2000-01-01'),
),
array(
new \DateTime('2001-01-01'),
'2000-01-01',
),
array(
new \DateTime('2001-01-01 UTC'),
'2000-01-01 UTC',
),
array(
new ComparisonTest_Class(6),
new ComparisonTest_Class(5),
),
array(
null,
1,
),
);
}