Skip to content

Commit

Permalink
ci: remove invalid operations on the DOMDocument from the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wazelin committed Jan 20, 2025
1 parent 4b28420 commit 3a9dc6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/qtismtest/common/dom/SerializableDomDocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ public function testCallingNotExistedVirtualMethods(): void
$dom->$method();
}

public function testCheckThatUnsetIsWorkingSimilarToRealDomObject(): void
public function testMagicMutatorsAndAccessors(): void
{
$serializableDOM = $this->getSerializableDomDocument();
$coreDom = new DOMDocument($serializableDOM->xmlVersion, $serializableDOM->encoding);

$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);
Expand Down

0 comments on commit 3a9dc6b

Please sign in to comment.