7 var $hasHeader = FALSE;
9 public function __construct($file, $headers) {
10 $this->file
= fopen($file, "w");
11 $this->headers
= $headers;
14 public function printHeader() {
15 if ($this->hasHeader
) {
19 $headers = array_values($this->headers
);
20 array_unshift($headers, 'TEST NAME');
21 fputcsv($this->file
, $headers);
23 $this->hasHeader
= TRUE;
26 public function printRow($test, $values) {
29 array_unshift($row, $test);
30 fputcsv($this->file
, $row);