function endTestRun()
 {
     parent::endTestRun();
     if ($this->out) {
         $this->out->write($this->logger->getXML());
         $this->out->close();
     }
 }
 function endTestRun()
 {
     parent::endTestRun();
     if ($this->out != NULL) {
         $this->out->close();
     }
 }