diff --git a/tests/NodeComparatorTest.php b/tests/NodeComparatorTest.php index d1db906..56b11b4 100644 --- a/tests/NodeComparatorTest.php +++ b/tests/NodeComparatorTest.php @@ -415,9 +415,9 @@ public function testIsEqualEntityNotationNode()

...

EOT); - $this->assertIsEqualNode(true, $dom1->doctype->notations['myNotation'], $dom2->doctype->notations['myNotation']); - $this->assertIsEqualNode(false, $dom1->doctype->notations['myNotation'], $dom2->doctype->notations['myNotation2']); - $this->assertIsEqualNode(false, $dom1->doctype->notations['myNotation'], $dom2->doctype->notations['myNotation3']); + $this->assertIsEqualNode(true, $dom1->doctype->notations->getNamedItem('myNotation'), $dom2->doctype->notations->getNamedItem('myNotation')); + $this->assertIsEqualNode(false, $dom1->doctype->notations->getNamedItem('myNotation'), $dom2->doctype->notations->getNamedItem('myNotation2')); + $this->assertIsEqualNode(false, $dom1->doctype->notations->getNamedItem('myNotation'), $dom2->doctype->notations->getNamedItem('myNotation3')); } public function testIsEqualDocumentFragmentNode()