You are here

public function AbstractComparisonValidatorTestCase::provideAllValidComparisons in Plug 7

Return value

array

1 method overrides AbstractComparisonValidatorTestCase::provideAllValidComparisons()
IdenticalToValidatorTest::provideAllValidComparisons in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IdenticalToValidatorTest.php

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php, line 99

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideAllValidComparisons() {

  // The provider runs before setUp(), so we need to manually fix
  // the default timezone
  $this
    ->setDefaultTimezone('UTC');
  $comparisons = self::addPhp5Dot5Comparisons($this
    ->provideValidComparisons());
  $this
    ->restoreDefaultTimezone();
  return $comparisons;
}