You are here

protected function AbstractConstraintValidatorTest::restoreDefaultTimezone in Plug 7

8 calls to AbstractConstraintValidatorTest::restoreDefaultTimezone()
AbstractComparisonValidatorTestCase::provideAllInvalidComparisons in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
AbstractComparisonValidatorTestCase::provideAllValidComparisons in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
AbstractConstraintValidatorTest::tearDown in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php
IdenticalToValidatorTest::provideAllValidComparisons in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IdenticalToValidatorTest.php
NotIdenticalToValidatorTest::provideAllInvalidComparisons in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/NotIdenticalToValidatorTest.php

... See full list

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php, line 105

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function restoreDefaultTimezone() {
  if (null !== $this->defaultTimezone) {
    date_default_timezone_set($this->defaultTimezone);
    $this->defaultTimezone = null;
  }
}