You are here

public function ArrayComparatorTest::assertEqualsFailsProvider in Zircon Profile 8

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

File

vendor/sebastian/comparator/tests/ArrayComparatorTest.php, line 71

Class

ArrayComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ArrayComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsFailsProvider() {
  return array(
    array(
      array(),
      array(
        0 => 1,
      ),
    ),
    array(
      array(
        0 => 1,
      ),
      array(),
    ),
    array(
      array(
        0 => null,
      ),
      array(),
    ),
    array(
      array(
        0 => 1,
        1 => 2,
      ),
      array(
        0 => 1,
        1 => 3,
      ),
    ),
    array(
      array(
        'a',
        'b' => array(
          1,
          2,
        ),
      ),
      array(
        'a',
        'b' => array(
          2,
          1,
        ),
      ),
    ),
    array(
      array(
        2.3,
      ),
      array(
        4.2,
      ),
      0.5,
    ),
    array(
      array(
        array(
          2.3,
        ),
      ),
      array(
        array(
          4.2,
        ),
      ),
      0.5,
    ),
    array(
      array(
        new Struct(2.3),
      ),
      array(
        new Struct(4.2),
      ),
      0.5,
    ),
  );
}