private function writeText(bool $allSucceeded) { // HTML is sent on purpose header('Content-Type: text/html; charset=utf-8'); echo '<pre>This is Beholder for project ' . $this->project . "\n"; echo 'Tests included: ' . $this->includeFilter . "\n"; echo 'Tests excluded: ' . $this->excludeFilter . "\n\n"; echo '<a href="?' . self::PARAM_INCLUDE . '=' . $this->includeFilter . '&' . self::PARAM_EXCLUDE . '=' . $this->excludeFilter . '&' . self::PARAM_OUTPUT . '=' . self::OUTPUT_HTML . "\">Html version</a>\n\n"; echo sprintf("%-9s %10s %-10s %-7s %-35s %s\n", 'Run Order', 'Duration', 'Ident', 'Status', 'Test Name', 'Description'); foreach ($this->testsData as $data) { echo sprintf("%9d %9.2fs %-10s %-7s %-35s %s\n", $data['order'], $data['duration'], $data['ident'], $data['result']->getStatusMessage(), $data['test']->getDescription(), $data['result']->getDescription()); } if ($allSucceeded) { echo "\nJust a little prayer so we know we are allright.\n\n"; for ($i = 0; $i < 5; $i++) { echo 'Our Father in heaven,' . "\n"; echo 'hallowed be your name,' . "\n"; echo 'your kingdom come,' . "\n"; echo 'your will be done' . "\n"; echo 'on earth as it is in heaven.' . "\n"; echo 'Give us today our daily bread,' . "\n"; echo 'and forgive us the wrong we have done' . "\n"; echo 'as we forgive those who wrong us.' . "\n"; echo 'Subject us not to the trial' . "\n"; echo 'but deliver us from the evil one.' . "\n"; echo 'And make the ' . $this->project . " project work.\n"; echo 'Amen.' . "\n\n"; } } }