diff -u b/lib/Drupal/pgn/Tests/XmlEncoderUnitTest.php b/lib/Drupal/pgn/Tests/XmlEncoderUnitTest.php --- b/lib/Drupal/pgn/Tests/XmlEncoderUnitTest.php +++ b/lib/Drupal/pgn/Tests/XmlEncoderUnitTest.php @@ -10023,6 +10023,10 @@ public function testXmlEncoder() { $encoder = new XmlEncoder(); + + $decoded = $encoder->decode($this->pgnxml, 'pgnxml'); + $this->assertIdentical($this->normalized, $decoded, 'Decoded PGNXML is equal to expected PGN data.'); + $encoded = $encoder->encode($this->normalized, 'pgnxml', array('xml_root_node_name' => 'PGNGAMES')); $expected = new \DOMDocument;