예제 #1
0
 /**
  * Start output buffering
  *
  * @param string      $filename Target file to save CSV data
  * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax)
  * @param string      $delimiter Delimiter for CSV format
  * @param string      $enclosure Enclosure for CSV format
  */
 public function __construct($filename, $filter = null, $delimiter = ',', $enclosure = '"')
 {
     parent::__construct($filter);
     $this->_filename = $filename;
     $this->_delimiter = $delimiter;
     $this->_enclosure = $enclosure;
 }
예제 #2
0
 /**
  * Start output buffering
  *
  * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax)
  */
 public function __construct($filter = null)
 {
     parent::__construct($filter);
     ob_start();
 }
예제 #3
0
 /**
  * @dataProvider getTimersDataProvider
  */
 public function testGetTimers($filter, $expectedTimers)
 {
     $this->_object->__construct($filter);
     $actualTimers = $this->_timersGetter->invoke($this->_object);
     $this->assertEquals($expectedTimers, $actualTimers);
 }