You are here

protected function AssertLegacyTrait::assertNotIdentical in Zircon Profile 8

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

Deprecated

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

See also

\Drupal\simpletest\TestBase::assertNotIdentical()

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assertNotIdentical($actual, $expected, $message = '') {
  $this
    ->assertNotSame($expected, $actual, $message);
}