getDataCollection() public méthode

Get the data collection
public getDataCollection ( ) : DataCollection
Résultat DataCollection
 /**
  * tests setter and getter for the data collection
  *
  * @group data
  * @group sourcetest
  */
 public function testGetDataCollectionReturnsSameDatacollectionAsInserted()
 {
     $mockCollection = $this->getMock('\\Browscap\\Data\\DataCollection', array(), array(), '', false);
     $this->object->setLogger($this->logger);
     self::assertSame($this->object, $this->object->setDataCollection($mockCollection));
     self::assertSame($mockCollection, $this->object->getDataCollection());
 }
Exemple #2
0
 /**
  * tests setter and getter for the data collection
  *
  * @group data
  * @group sourcetest
  */
 public function testGetDataCollectionReturnsSameDatacollectionAsInserted()
 {
     $collection = $this->createMock(\Browscap\Data\DataCollection::class);
     $this->object->setLogger($this->logger);
     self::assertSame($this->object, $this->object->setDataCollection($collection));
     self::assertSame($collection, $this->object->getDataCollection());
 }