class DateTimeIso8601NormalizerTestDrupalDateTime

Same name and namespace in other branches
  1. 11.x core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\DateTimeIso8601NormalizerTestDrupalDateTime

Provides a test class for testing DrupalDateTime.

Note: Prophecy does not support magic methods. By subclassing and specifying an explicit method, Prophecy works.

Hierarchy

Expanded class hierarchy of DateTimeIso8601NormalizerTestDrupalDateTime

See also

https://github.com/phpspec/prophecy/issues/338

https://github.com/phpspec/prophecy/issues/34

https://github.com/phpspec/prophecy/issues/80

File

core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php, line 267

Namespace

Drupal\Tests\serialization\Unit\Normalizer
View source
class DateTimeIso8601NormalizerTestDrupalDateTime extends DrupalDateTime {
  public function setTimezone(\DateTimeZone $timezone) {
    parent::setTimezone($timezone);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.