public function testParseDoesNothingOnEmptyDatacollection()
{
$collection = $this->getMockBuilder(\Browscap\Data\DataCollection::class)->disableOriginalConstructor()->setMethods(['getDivisions', 'getDefaultProperties'])->getMock();
$collection->expects(self::never())->method('getDivisions')->will(self::returnValue([]));
$division = $this->getMockBuilder(\Browscap\Data\Division::class)->disableOriginalConstructor()->setMethods(['getUserAgents'])->getMock();
$division->expects(self::once())->method('getUserAgents')->will(self::returnValue([0 => ['properties' => ['avd' => 'xyz']]]));
$collection->expects(self::once())->method('getDefaultProperties')->will(self::returnValue($division));
$division = $this->getMockBuilder(\Browscap\Data\Division::class)->disableOriginalConstructor()->setMethods(['getUserAgents'])->getMock();
$division->expects(self::once())->method('getUserAgents')->will(self::returnValue([]));
$this->object->setLogger($this->logger);
self::assertSame($this->object, $this->object->setDataCollection($collection));
$result = $this->object->expand($division, 'TestDivision');
self::assertInternalType('array', $result);
self::assertCount(0, $result);
}