12 public $hasHeader = FALSE;
18 public function __construct($file, $headers) {
19 $this->file
= fopen($file, "w");
20 $this->headers
= $headers;
23 public function printHeader() {
24 if ($this->hasHeader
) {
28 $headers = array_values($this->headers
);
29 array_unshift($headers, 'TEST NAME');
30 fputcsv($this->file
, $headers);
32 $this->hasHeader
= TRUE;
39 public function printRow($test, $values) {
42 array_unshift($row, $test);
43 fputcsv($this->file
, $row);