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 @@ -8861,7 +8861,7 @@ protected $pgnxml = <<<'EOPGNXML' - + Salzburg @@ -10020,10 +10020,15 @@ ); } + protected function setUp() { + parent::setUp(); + $this->pgnxml = strtr($this->pgnxml, array("\n" => '')); + } + public function testXmlEncoder() { $encoder = new XmlEncoder(); $encoded = $encoder->encode($this->normalized, 'pgnxml', array('xml_root_node_name' => 'PGNGAMES')); - $this->assertIdentical($this->pgnxml, $encoded); + $this->assertIdentical($this->pgnxml, $encoded, 'Encoded PGN data is identical to expected PGNXML string value.'); } }