Ejemplo n.º 1
0
 public static function setUpBeforeClass()
 {
     @chmod(__DIR__, 0775);
     @mkdir(__DIR__ . '/data', 0775, true);
     // DON'T put this in create
     // create db
     self::$db = new Database(__DIR__ . '/data');
     self::$db->guid = self::guid();
     // create index
     self::$guidIndex = new Index(self::$db, 'guid', 'guid');
     // random delay for concurrent testing
     usleep(rand(0, 100));
 }