$sys = new SystemManager(); $ksdefs = $sys->describe_keyspaces(); $exists = False; foreach ($ksdefs as $ksdef) { $exists = $exists || $ksdef->name == self::$KS; } if ($exists) { $sys->drop_keyspace(self::$KS); } $sys->create_keyspace(self::$KS, array()); } public static function tearDownAfterClass() { $sys = new SystemManager(); $sys->drop_keyspace(self::$KS); $sys->close(); } public function setUp() { } public function tearDown() { foreach ($this->cfs as $cf) { foreach (self::$KEYS as $key) { $cf->remove($key); } } } } AutopackBase::$have64Bit = PHP_INT_MAX !== 2147483647;