/**
* tests setting a file into silent mode
*
* @group writer
* @group sourcetest
*/
public function testSetSilentSection()
{
$mockFilter = $this->getMock('\\Browscap\\Filter\\FullFilter', array('isOutputSection'), array(), '', false);
$mockFilter->expects(self::once())->method('isOutputSection')->will(self::returnValue(true));
$mockDivision = array();
$mockWriter = $this->getMock('\\Browscap\\Writer\\CsvWriter', array('getFilter'), array(), '', false);
$mockWriter->expects(self::once())->method('getFilter')->will(self::returnValue($mockFilter));
self::assertSame($this->object, $this->object->addWriter($mockWriter));
self::assertSame($this->object, $this->object->setSilentSection($mockDivision));
}