function PhpunitCompatibilityTraitTest::testAssertEqualsCanonicalizing

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,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.