Beispiel #1
0
 /**
  * Creates the formatter adding a testsuites root to the xml
  */
 public function __construct(Reporter $reporter)
 {
     parent::__construct($reporter);
     $this->_xml = new \SimpleXMLElement("<testsuites></testsuites>");
 }
 public function output()
 {
     $this->formatter->output();
 }
 public function update(\SplSubject $method, $reporterEvent = null)
 {
     if ($reporterEvent->event == 'exampleStart') {
         $this->startRenderingExample($reporterEvent);
     } elseif ($reporterEvent->event == 'exampleFinish') {
         $this->finishRenderingExample($reporterEvent);
     } else {
         parent::update($method, $reporterEvent);
     }
 }
 public function update(\SplSubject $subject, $reporterEvent = null)
 {
     if ($reporterEvent->event == 'exit') {
         parent::update($subject, $reporterEvent);
     }
 }