public function PhpUnitWarningsTest::testAssertEquals in Drupal 9
Tests assertEquals.
File
- core/
tests/ Drupal/ Tests/ PhpUnitWarningsTest.php, line 101
Class
- PhpUnitWarningsTest
- @coversDefaultClass \Drupal\Tests\Traits\PhpUnitWarnings @group legacy
Namespace
Drupal\TestsCode
public function testAssertEquals() {
if (RunnerVersion::getMajor() > 8) {
$this
->markTestSkipped("In PHPUnit 9+, the \$canonicalize parameter of assertEquals() is removed.");
}
$this
->expectDeprecation('The optional $canonicalize parameter of assertEquals() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertEqualsCanonicalizing() instead.');
$this
->assertEquals([
'a',
'b',
], [
'b',
'a',
], '', 0.0, 10, TRUE);
}