/**
  * This method is called before the first test of this test class is run.
  *
  * @since Method available since Release 3.4.0
  */
 public static function setUpBeforeClass()
 {
     $cacheDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'browscap_testing';
     if (!is_dir($cacheDir)) {
         if (false === @mkdir($cacheDir, 0777, true)) {
             throw new \RuntimeException(sprintf('Unable to create the "%s" directory', $cacheDir));
         }
     }
     self::$cacheDir = $cacheDir;
 }
 /**
  * This method is called before the first test of this test class is run.
  */
 public static function setUpBeforeClass()
 {
     $cacheDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'browscap_testing';
     if (!is_dir($cacheDir)) {
         if (false === @mkdir($cacheDir, 0777, true)) {
             throw new \RuntimeException(sprintf('Unable to create the "%s" directory', $cacheDir));
         }
     }
     self::$cacheDir = $cacheDir;
     $objectIniPath = ini_get('browscap');
     if (!is_file($objectIniPath)) {
         self::markTestSkipped('browscap not defined in php.ini');
     }
     self::$object = new Browscap(self::$cacheDir);
     self::$object->localFile = $objectIniPath;
     self::$object->doAutoUpdate = false;
     self::$object->updateCache();
 }