renders all found useragents into a string
/** * tests rendering the body of one section * * @group writer * @group sourcetest */ public function testRenderSectionBody() { $section = array('Comment' => 1, 'Win16' => true, 'Platform' => 'bcd'); $mockCollection = $this->getMock('\\Browscap\\Data\\DataCollection', array(), array(), '', false); $mockWriter = $this->getMock('\\Browscap\\Writer\\CsvWriter', array(), array(), '', false); self::assertSame($this->object, $this->object->addWriter($mockWriter)); self::assertSame($this->object, $this->object->renderSectionBody($section, $mockCollection)); }
/** * tests rendering the body of one section * * @group writer * @group sourcetest */ public function testRenderSectionBody() { $section = ['Comment' => 1, 'Win16' => true, 'Platform' => 'bcd']; $collection = $this->createMock(\Browscap\Data\DataCollection::class); $mockWriter = $this->createMock(\Browscap\Writer\CsvWriter::class); self::assertSame($this->object, $this->object->addWriter($mockWriter)); self::assertSame($this->object, $this->object->renderSectionBody($section, $collection)); }