class TimestampNormalizerTestDrupalDateTime

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

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 TimestampNormalizerTestDrupalDateTime

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/TimestampNormalizerTest.php, line 144

Namespace

Drupal\Tests\serialization\Unit\Normalizer
View source
class TimestampNormalizerTestDrupalDateTime 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.