public function testWrongXML()
 {
     $XML = simplexml_load_string('<test>abc</test>');
     $Parser = new ParserPWXSingle('', $XML);
     $Parser->parse();
     $this->assertTrue($Parser->failed());
 }
 /**
  * Parse single workout
  * @param SimpleXMLElement $Workout
  */
 protected function parseSingleWorkout(SimpleXMLElement &$Workout)
 {
     $Parser = new ParserPWXSingle('', $Workout);
     $Parser->parse();
     if ($Parser->failed()) {
         $this->addErrors($Parser->getErrors());
     } else {
         $this->addObject($Parser->object());
     }
 }