コード例 #1
0
ファイル: CsvfileTest.php プロジェクト: nemphys/magento2
 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);
 }
コード例 #2
0
ファイル: OutputBamboo.php プロジェクト: relue/magento2
 /**
  * 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;
 }