You are here

function FilterDOMSerializeTestCase::testFilterEmptyDOMSerialization in Drupal 7

Tests empty DOMDocument object.

File

modules/filter/filter.test, line 2030
Tests for filter.module.

Class

FilterDOMSerializeTestCase
Tests DOMDocument serialization.

Code

function testFilterEmptyDOMSerialization() {
  $document = new DOMDocument();
  $result = filter_dom_serialize($document);
  $this
    ->assertEqual('', $result);
}