Skip to content

Commit 01a9e2f

Browse files
committed
Added new test related to paquettg#63
1 parent 77d3a9c commit 01a9e2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Node/TextTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ public function testAncestorByTag()
2222
$text = $node->ancestorByTag('text');
2323
$this->assertEquals($node, $text);
2424
}
25+
26+
public function testPreserveEntity()
27+
{
28+
$node = new TextNode('i');
29+
$text = $node->text;
30+
$this->assertEquals('i', $text);
31+
}
2532
}

0 commit comments

Comments
 (0)