You are here

public function ScalarComparatorTest::acceptsSucceedsProvider in Zircon Profile 8

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

File

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

Class

ScalarComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ScalarComparator

Namespace

SebastianBergmann\Comparator

Code

public function acceptsSucceedsProvider() {
  return array(
    array(
      "string",
      "string",
    ),
    array(
      new ClassWithToString(),
      "string",
    ),
    array(
      "string",
      new ClassWithToString(),
    ),
    array(
      "string",
      null,
    ),
    array(
      false,
      "string",
    ),
    array(
      false,
      true,
    ),
    array(
      null,
      false,
    ),
    array(
      null,
      null,
    ),
    array(
      "10",
      10,
    ),
    array(
      "",
      false,
    ),
    array(
      "1",
      true,
    ),
    array(
      1,
      true,
    ),
    array(
      0,
      false,
    ),
    array(
      0.1,
      "0.1",
    ),
  );
}