You are here

public function IdenticalToValidatorTest::provideAllValidComparisons in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/IdenticalToValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IdenticalToValidatorTest::provideAllValidComparisons()

Return value

array

Overrides AbstractComparisonValidatorTestCase::provideAllValidComparisons

File

vendor/symfony/validator/Tests/Constraints/IdenticalToValidatorTest.php, line 38

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideAllValidComparisons() {
  $this
    ->setDefaultTimezone('UTC');

  // Don't call addPhp5Dot5Comparisons() automatically, as it does
  // not take care of identical objects
  $comparisons = $this
    ->provideValidComparisons();
  $this
    ->restoreDefaultTimezone();
  return $comparisons;
}