You are here

public function DateTimeComparatorTest::assertEqualsFailsProvider in Zircon Profile 8

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

File

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

Class

DateTimeComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\DateTimeComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsFailsProvider() {
  return array(
    array(
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York')),
    ),
    array(
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York')),
      3500,
    ),
    array(
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-29 05:13:35', new DateTimeZone('America/New_York')),
      3500,
    ),
    array(
      new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
    ),
    array(
      new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
      43200,
    ),
    array(
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
    ),
    array(
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
      3500,
    ),
    array(
      new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
      new DateTime('2013-03-30', new DateTimeZone('America/Chicago')),
    ),
    array(
      new DateTime('2013-03-29T05:13:35-0600'),
      new DateTime('2013-03-29T04:13:35-0600'),
    ),
    array(
      new DateTime('2013-03-29T05:13:35-0600'),
      new DateTime('2013-03-29T05:13:35-0500'),
    ),
  );
}