public function LessThanOrEqualValidatorTest::provideInvalidComparisons in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/LessThanOrEqualValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\LessThanOrEqualValidatorTest::provideInvalidComparisons()
Return value
array
Overrides AbstractComparisonValidatorTestCase::provideInvalidComparisons
File
- vendor/
symfony/ validator/ Tests/ Constraints/ LessThanOrEqualValidatorTest.php, line 63
Class
- LessThanOrEqualValidatorTest
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideInvalidComparisons() {
return array(
array(
2,
'2',
1,
'1',
'integer',
),
array(
new \DateTime('2010-01-01'),
'Jan 1, 2010, 12:00 AM',
new \DateTime('2000-01-01'),
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new \DateTime('2010-01-01'),
'Jan 1, 2010, 12:00 AM',
'2000-01-01',
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new \DateTime('2010-01-01 UTC'),
'Jan 1, 2010, 12:00 AM',
'2000-01-01 UTC',
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new ComparisonTest_Class(5),
'5',
new ComparisonTest_Class(4),
'4',
__NAMESPACE__ . '\\ComparisonTest_Class',
),
array(
'c',
'"c"',
'b',
'"b"',
'string',
),
);
}