Ported missing scalar test from the PHPUnit project.
Ported `DOMNodeComparator` tests.