renderAllDivisionsHeader() public method

renders the header for all divisions
public renderAllDivisionsHeader ( DataCollection $collection ) : Browscap\Writer\WriterInterface
$collection Browscap\Data\DataCollection
return Browscap\Writer\WriterInterface
コード例 #1
0
 /**
  * tests rendering the header for all division
  *
  * @group writer
  * @group sourcetest
  */
 public function testRenderAllDivisionsHeader()
 {
     $mockCollection = $this->getMock('\\Browscap\\Data\\DataCollection', array(), array(), '', false);
     self::assertSame($this->object, $this->object->renderAllDivisionsHeader($mockCollection));
     self::assertSame('<browsercapitems>' . PHP_EOL, file_get_contents($this->file));
 }
コード例 #2
0
ファイル: XmlWriterTest.php プロジェクト: browscap/browscap
 /**
  * tests rendering the header for all division
  *
  * @group writer
  * @group sourcetest
  */
 public function testRenderAllDivisionsHeader()
 {
     $collection = $this->createMock(\Browscap\Data\DataCollection::class);
     self::assertSame($this->object, $this->object->renderAllDivisionsHeader($collection));
     self::assertSame('<browsercapitems>' . PHP_EOL, file_get_contents($this->file));
 }