setSilent() 공개 메소드

public setSilent ( boolean $silent ) : Browscap\Writer\WriterInterface
$silent boolean
리턴 Browscap\Writer\WriterInterface
예제 #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));
 }
예제 #2
0
 /**
  * tests rendering the body of one section
  *
  * @group writer
  * @group sourcetest
  */
 public function testRenderSectionBodyIfSilent()
 {
     $this->object->setSilent(true);
     $section = array('Test' => 1, 'isTest' => true, 'abc' => 'bcd');
     $mockCollection = $this->getMock('\\Browscap\\Data\\DataCollection', array(), array(), '', false);
     self::assertSame($this->object, $this->object->renderSectionBody($section, $mockCollection));
     self::assertSame('', file_get_contents($this->file));
 }