addDefaultProperties() 공개 메소드

Load the file for the default properties
public addDefaultProperties ( string $src ) : DataCollection
$src string Name of the file
리턴 DataCollection
예제 #1
0
 /**
  * checks if the default properties are added sucessfully
  *
  * @group data
  * @group sourcetest
  */
 public function testAddDefaultProperties()
 {
     self::assertSame($this->object, $this->object->addDefaultProperties(__DIR__ . '/../../fixtures/ua/default-properties.json'));
     $division = $this->object->getDefaultProperties();
     self::assertInstanceOf('\\Browscap\\Data\\Division', $division);
     self::assertSame('DefaultProperties', $division->getName());
 }