Browscap\Writer\CsvWriter::renderHeader PHP Method

renderHeader() public method

Generate the header
public renderHeader ( array $comments = [] ) : Browscap\Writer\WriterInterface
$comments array
return Browscap\Writer\WriterInterface
    public function renderHeader(array $comments = [])
    {
        return $this;
    }

Usage Example

Example #1
0
 /**
  * tests rendering the header information
  *
  * @group writer
  * @group sourcetest
  */
 public function testRenderHeader()
 {
     $header = ['TestData to be renderd into the Header'];
     self::assertSame($this->object, $this->object->renderHeader($header));
     self::assertSame('', file_get_contents($this->file));
 }