/** * 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)); }
/** * 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)); }