public function runTests($output)
 {
     $this->getTestFixturesByParent();
     $this->run();
     if (PHP_SAPI === 'cli') {
         $output = TemplateType::Cli;
     }
     $OutputTemplate = TemplateFactory::createOutputTemplate($output, $this->Language);
     echo $OutputTemplate->get($this->Errors, $this->Results, $this->Text, $this->Duration, $this->MethodCalls);
     if (count($this->Errors) > 0) {
         exit(1);
     } else {
         exit(0);
     }
 }