You are here

public function DateTimeComparatorTest::testAcceptsDateTimeInterface in Zircon Profile 8

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

@requires PHP 5.5 @covers ::accepts

File

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

Class

DateTimeComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\DateTimeComparator

Namespace

SebastianBergmann\Comparator

Code

public function testAcceptsDateTimeInterface() {
  $this
    ->assertTrue($this->comparator
    ->accepts(new DateTime(), new DateTimeImmutable()));
}