You are here

public function SplObjectStorageComparatorTest::assertEqualsSucceedsProvider in Zircon Profile 8

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

File

vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php, line 38

Class

SplObjectStorageComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\SplObjectStorageComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsSucceedsProvider() {
  $object1 = new stdClass();
  $object2 = new stdClass();
  $storage1 = new SplObjectStorage();
  $storage2 = new SplObjectStorage();
  $storage3 = new SplObjectStorage();
  $storage3
    ->attach($object1);
  $storage3
    ->attach($object2);
  $storage4 = new SplObjectStorage();
  $storage4
    ->attach($object2);
  $storage4
    ->attach($object1);
  return array(
    array(
      $storage1,
      $storage1,
    ),
    array(
      $storage1,
      $storage2,
    ),
    array(
      $storage3,
      $storage3,
    ),
    array(
      $storage3,
      $storage4,
    ),
  );
}