public function __construct($file, $headers) {
$this->file = fopen($file, "w");
$this->headers = $headers;
public function __construct($file, $headers) {
$this->file = fopen($file, "w");
$this->headers = $headers;
public function printRow($test, $values) {
$this->printHeader();
$row = $values;
array_unshift($row, $test);
fputcsv($this->file, $row);
}
public function printRow($test, $values) {
$this->printHeader();
$row = $values;
array_unshift($row, $test);
fputcsv($this->file, $row);
}