Skip to content

Commit

Permalink
MSS-151: Convert DOMNodeList to a XML string
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberwolf committed Apr 22, 2015
1 parent fd65250 commit dded997
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/CultureFeed/Cdb/Item/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,9 @@ public function testKeywordAppendToDomAsValue() {
$xpath = new DOMXPath($dom);

$items = $xpath->query('/events/event/keywords');
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Data/samples/KeywordTest/keywords.xml', $items);
$xml = $dom->saveXML($items->item(0));

$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Data/samples/KeywordTest/keywords.xml', $xml);
}

/**
Expand All @@ -989,6 +991,8 @@ public function testKeywordAppendToDomAsTag() {
$xpath = new DOMXPath($dom);

$items = $xpath->query('/events/event/keywords');
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Data/samples/KeywordTest/keywords.xml', $items);

$xml = $dom->saveXML($items->item(0));
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Data/samples/KeywordTest/keywords.xml', $xml);
}
}

0 comments on commit dded997

Please sign in to comment.