diff --git a/test/qtismtest/common/dom/SerializableDomDocumentTest.php b/test/qtismtest/common/dom/SerializableDomDocumentTest.php index 8e66f0e56..e34217531 100644 --- a/test/qtismtest/common/dom/SerializableDomDocumentTest.php +++ b/test/qtismtest/common/dom/SerializableDomDocumentTest.php @@ -81,7 +81,7 @@ public function testCallingNotExistedVirtualMethods(): void $dom->$method(); } - public function testCheckThatUnsetIsWorkingSimilarToRealDomObject(): void + public function testMagicMutatorsAndAccessors(): void { $serializableDOM = $this->getSerializableDomDocument(); $coreDom = new DOMDocument($serializableDOM->xmlVersion, $serializableDOM->encoding); @@ -89,11 +89,11 @@ public function testCheckThatUnsetIsWorkingSimilarToRealDomObject(): void $this->assertEquals($coreDom->xmlVersion, $serializableDOM->version); $this->assertEquals($coreDom->encoding, $serializableDOM->encoding); - unset($coreDom->xmlVersion); - unset($coreDom->encoding); + $coreDom->xmlVersion = null; + $coreDom->encoding = 'ASCII'; - unset($serializableDOM->xmlVersion); - unset($serializableDOM->encoding); + $serializableDOM->xmlVersion = null; + $serializableDOM->encoding = 'ASCII'; $this->assertEquals($coreDom->xmlVersion, $serializableDOM->version); $this->assertEquals($coreDom->encoding, $serializableDOM->encoding);