You are here

public function ScalarComparatorTest::assertEqualsSucceedsProvider in Zircon Profile 8

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

File

vendor/sebastian/comparator/tests/ScalarComparatorTest.php, line 57

Class

ScalarComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ScalarComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsSucceedsProvider() {
  return array(
    array(
      "string",
      "string",
    ),
    array(
      new ClassWithToString(),
      new ClassWithToString(),
    ),
    array(
      "string representation",
      new ClassWithToString(),
    ),
    array(
      new ClassWithToString(),
      "string representation",
    ),
    array(
      "string",
      "STRING",
      true,
    ),
    array(
      "STRING",
      "string",
      true,
    ),
    array(
      "String Representation",
      new ClassWithToString(),
      true,
    ),
    array(
      new ClassWithToString(),
      "String Representation",
      true,
    ),
    array(
      "10",
      10,
    ),
    array(
      "",
      false,
    ),
    array(
      "1",
      true,
    ),
    array(
      1,
      true,
    ),
    array(
      0,
      false,
    ),
    array(
      0.1,
      "0.1",
    ),
    array(
      false,
      null,
    ),
    array(
      false,
      false,
    ),
    array(
      true,
      true,
    ),
    array(
      null,
      null,
    ),
  );
}