4 class ComparisonPrinter
{
6 var $hasHeader = FALSE;
8 public function __construct($headers) {
9 $this->headers
= $headers;
12 public function printHeader() {
13 if ($this->hasHeader
) {
20 foreach ($this->headers
as $header) {
21 printf("% 2d: %s\n", $i, $header);
27 printf("%-90s ", 'TEST NAME');
29 foreach ($this->headers
as $header) {
35 $this->hasHeader
= TRUE;
38 public function printRow($test, $values) {
40 printf("%-90s ", $test);
41 foreach ($values as $value) {
42 printf("%-10s ", $value);