/**
* tests creating a data collection
*
* @group helper
* @group sourcetest
*/
public function testCreateDataCollection()
{
$mockCollection = $this->getMock('\\Browscap\\Data\\DataCollection', array('addPlatformsFile', 'addSourceFile', 'addEnginesFile', 'addDevicesFile'), array(), '', false);
$mockCollection->expects(self::any())->method('addPlatformsFile')->will(self::returnSelf());
$mockCollection->expects(self::any())->method('addEnginesFile')->will(self::returnSelf());
$mockCollection->expects(self::any())->method('addDevicesFile')->will(self::returnSelf());
$mockCollection->expects(self::any())->method('addSourceFile')->will(self::returnSelf());
$this->object->setLogger($this->logger)->setDataCollection($mockCollection);
$result = $this->object->createDataCollection(__DIR__ . '/../../fixtures');
self::assertInstanceOf('\\Browscap\\Data\\DataCollection', $result);
self::assertSame($mockCollection, $result);
}