Skip to content

Commit

Permalink
[TEST] Fix Test
Browse files Browse the repository at this point in the history
DOM now includes some namespace optimization.
  • Loading branch information
ThomasWeinert committed Oct 19, 2023
1 parent ca59e5c commit c06b9dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/FluentDOM/CreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,18 @@ public function testCreatorOptimizesNamespacesByDefault(): void {
public function testCreatorOptimizeNamespacesCanBeDisabled(): void {
$_ = new Creator();
$_->registerNamespace('foo', 'urn:foo');
$_->optimizeNamespaces = FALSE;
$_->optimizeNamespaces = false;
$document = $_(
'root',
$_('foo:child')
$_('foo:child', 'text')
)->document;
$this->assertEquals(
'urn:foo',
$document->documentElement->getAttribute('xmlns:foo')
);
$this->assertEquals(
'urn:foo',
$document->documentElement->firstElementChild->getAttribute('xmlns:foo')
'text',
$document('string(//foo:child)')
);
}

Expand Down

0 comments on commit c06b9dc

Please sign in to comment.