You are here

public function DateTimeComparatorTest::testSupportsDateTimeInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/tests/DateTimeComparatorTest.php \SebastianBergmann\Comparator\DateTimeComparatorTest::testSupportsDateTimeInterface()

@requires PHP 5.5 @covers ::assertEquals

File

vendor/sebastian/comparator/tests/DateTimeComparatorTest.php, line 209

Class

DateTimeComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\DateTimeComparator

Namespace

SebastianBergmann\Comparator

Code

public function testSupportsDateTimeInterface() {
  $this->comparator
    ->assertEquals(new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')), new DateTimeImmutable('2013-03-29 04:13:35', new DateTimeZone('America/New_York')));
}