BrowscapTest\Writer\CsvWriterTest::testRenderAllDivisionsHeaderWithoutProperties PHP Method

testRenderAllDivisionsHeaderWithoutProperties() public method

tests rendering the header for all division
    public function testRenderAllDivisionsHeaderWithoutProperties()
    {
        $division = $this->getMockBuilder(\Browscap\Data\Division::class)->disableOriginalConstructor()->setMethods(['getUserAgents'])->getMock();
        $division->expects(self::once())->method('getUserAgents')->will(self::returnValue([]));
        $collection = $this->getMockBuilder(\Browscap\Data\DataCollection::class)->disableOriginalConstructor()->setMethods(['getDefaultProperties'])->getMock();
        $collection->expects(self::once())->method('getDefaultProperties')->will(self::returnValue($division));
        self::assertSame($this->object, $this->object->renderAllDivisionsHeader($collection));
        self::assertSame('', file_get_contents($this->file));
    }