You are here

protected function AssertLegacyTrait::assertIdenticalObject in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertIdenticalObject()

Deprecated

Scheduled for removal in Drupal 9.0.0. Use self::assertEquals() instead.

See also

\Drupal\simpletest\TestBase::assertIdenticalObject()

File

core/tests/Drupal/KernelTests/AssertLegacyTrait.php, line 101
Contains \Drupal\KernelTests\AssertLegacyTrait.

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assertIdenticalObject($actual, $expected, $message = '') {

  // Note: ::assertSame checks whether its the same object. ::assertEquals
  // though compares
  $this
    ->assertEquals($expected, $actual, $message);
}