BrowscapPHPTest\CompareBrowscapWithOriginalTest::setUpBeforeClass PHP Method

setUpBeforeClass() public static method

This method is called before the first test of this test class is run.
public static setUpBeforeClass ( )
    public static function setUpBeforeClass()
    {
        $objectIniPath = ini_get('browscap');
        if (!is_file($objectIniPath)) {
            self::markTestSkipped('browscap not defined in php.ini');
        }
        // Now, load an INI file into BrowscapPHP\Browscap for testing the UAs
        self::$object = new Browscap();
        $cacheAdapter = new Memory();
        $cache = new BrowscapCache($cacheAdapter);
        $cache->flush();
        $updater = new BrowscapUpdater();
        $updater->setCache($cache)->convertFile($objectIniPath);
        self::$object->setCache($cache);
    }