BrowscapTest\Data\DataCollectionTest::testAddDefaultProperties PHP Метод

testAddDefaultProperties() публичный Метод

checks if the default properties are added sucessfully
    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::class, $division);
        self::assertSame('DefaultProperties', $division->getName());
    }
DataCollectionTest