You are here

public function TestBaseTest::providerAssertIdenticalObject in Drupal 8

Data provider for testAssertIdenticalObject().

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 372

Class

TestBaseTest
@requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase

Namespace

Drupal\Tests\simpletest\Unit

Code

public function providerAssertIdenticalObject() {
  $obj1 = new \stdClass();
  $obj1->foof = 'yay';
  $obj2 = $obj1;
  $obj3 = clone $obj1;
  $obj4 = new \stdClass();
  return [
    [
      TRUE,
      $obj1,
      $obj2,
    ],
    [
      TRUE,
      $obj1,
      $obj3,
    ],
    [
      FALSE,
      $obj1,
      $obj4,
    ],
  ];
}