function MarkupInterfaceComparator::assertEquals
Same name in other branches
- 9 core/tests/Drupal/TestTools/Comparator/MarkupInterfaceComparator.php \Drupal\TestTools\Comparator\MarkupInterfaceComparator::assertEquals()
- 10 core/tests/Drupal/TestTools/Comparator/MarkupInterfaceComparator.php \Drupal\TestTools\Comparator\MarkupInterfaceComparator::assertEquals()
- 11.x core/tests/Drupal/TestTools/Comparator/MarkupInterfaceComparator.php \Drupal\TestTools\Comparator\MarkupInterfaceComparator::assertEquals()
File
-
core/
tests/ Drupal/ TestTools/ Comparator/ MarkupInterfaceComparator.php, line 27
Class
- MarkupInterfaceComparator
- Compares MarkupInterface objects for equality.
Namespace
Drupal\TestTools\ComparatorCode
public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = FALSE, $ignoreCase = FALSE) {
$expected_safe = (string) $expected;
$actual_safe = (string) $actual;
$comparator = $this->factory
->getComparatorFor($expected_safe, $actual_safe);
$comparator->assertEquals($expected_safe, $actual_safe, $delta, $canonicalize, $ignoreCase);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.