public function testDisplayDefaults() { $this->_object = new Magento_Profiler_Output_Csvfile($this->_actualCsvFile); $this->_object->display(); $expectedCsvFile = __DIR__ . '/../_files/output_default.csv'; $this->assertFileEquals($expectedCsvFile, $this->_actualCsvFile); }
/** * Constructor * * @param string $filename Filename of the target file to write results to * @param array $metrics Metrics to be included into result. * Supported format: array( * 'metric name 1' => array( * 'profiler key 1', ... * ), ... * ); * @param string $delimiter * @param string $enclosure */ public function __construct($filename, array $metrics, $delimiter = ',', $enclosure = '"') { parent::__construct($filename, null, $delimiter, $enclosure); $this->_metrics = $metrics; }