function TestBaseTest::providerAssertIdenticalObject
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\UnitCode
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,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.