Browscap\Writer\CsvWriter::setSilent PHP Method

setSilent() public method

public setSilent ( boolean $silent ) : Browscap\Writer\WriterInterface
$silent boolean
return Browscap\Writer\WriterInterface
    public function setSilent($silent)
    {
        $this->silent = (bool) $silent;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * tests rendering the body of one section
  *
  * @group writer
  * @group sourcetest
  */
 public function testRenderSectionBodyIfSilent()
 {
     $this->object->setSilent(true);
     $section = ['Test' => 1, 'isTest' => true, 'abc' => 'bcd'];
     $collection = $this->createMock(\Browscap\Data\DataCollection::class);
     self::assertSame($this->object, $this->object->renderSectionBody($section, $collection));
     self::assertSame('', file_get_contents($this->file));
 }
All Usage Examples Of Browscap\Writer\CsvWriter::setSilent