public function testCreateDataCollection()
{
$collection = $this->getMockBuilder(\Browscap\Data\DataCollection::class)->disableOriginalConstructor()->setMethods(['addPlatformsFile', 'addSourceFile', 'addEnginesFile', 'addDevicesFile'])->getMock();
$collection->expects(self::any())->method('addPlatformsFile')->will(self::returnSelf());
$collection->expects(self::any())->method('addEnginesFile')->will(self::returnSelf());
$collection->expects(self::any())->method('addDevicesFile')->will(self::returnSelf());
$collection->expects(self::any())->method('addSourceFile')->will(self::returnSelf());
$this->object->setLogger($this->logger)->setDataCollection($collection);
$result = $this->object->createDataCollection(__DIR__ . '/../../fixtures');
self::assertInstanceOf(\Browscap\Data\DataCollection::class, $result);
self::assertSame($collection, $result);
}