You are here

public function PhpunitCompatibilityTraitTest::testAssertEqualsCanonicalizing in Drupal 8

Tests that assert(Not)EqualsCanonicalizing methods are available.

@covers ::assertEqualsCanonicalizing @covers ::assertNotEqualsCanonicalizing

File

core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php, line 67

Class

PhpunitCompatibilityTraitTest
Tests the PHPUnit forward compatibility trait.

Namespace

Drupal\Tests

Code

public function testAssertEqualsCanonicalizing() {
  $this
    ->assertEqualsCanonicalizing([
    3,
    2,
    1,
  ], [
    2,
    3,
    1,
  ]);
  $this
    ->assertNotEqualsCanonicalizing([
    3,
    2,
    1,
  ], [
    2,
    3,
    0,
    1,
  ]);
}