public function NotEqualToValidatorTest::provideInvalidComparisons 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::provideInvalidComparisons()
Return value
array
Overrides AbstractComparisonValidatorTestCase::provideInvalidComparisons
File
- vendor/
symfony/ validator/ Tests/ Constraints/ NotEqualToValidatorTest.php, line 57
Class
- NotEqualToValidatorTest
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideInvalidComparisons() {
return array(
array(
3,
'3',
3,
'3',
'integer',
),
array(
'2',
'"2"',
2,
'2',
'integer',
),
array(
'a',
'"a"',
'a',
'"a"',
'string',
),
array(
new \DateTime('2000-01-01'),
'Jan 1, 2000, 12:00 AM',
new \DateTime('2000-01-01'),
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new \DateTime('2000-01-01'),
'Jan 1, 2000, 12:00 AM',
'2000-01-01',
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new \DateTime('2000-01-01 UTC'),
'Jan 1, 2000, 12:00 AM',
'2000-01-01 UTC',
'Jan 1, 2000, 12:00 AM',
'DateTime',
),
array(
new ComparisonTest_Class(5),
'5',
new ComparisonTest_Class(5),
'5',
__NAMESPACE__ . '\\ComparisonTest_Class',
),
);
}