DocumentFragmentTest.php 412 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace DiDom\Tests;
  4. use DiDom\Document;
  5. class DocumentFragmentTest extends TestCase
  6. {
  7. public function testAppendXml()
  8. {
  9. $document = new Document();
  10. $documentFragment = $document->createDocumentFragment();
  11. $documentFragment->appendXml('<foo>bar</foo>');
  12. $this->assertEquals('<foo>bar</foo>', $documentFragment->innerXml());
  13. }
  14. }