/** * Cleans test folders in the temporary directory. * * @BeforeSuite * @AfterSuite */ public static function cleanTestFolders() { if (is_dir($dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'php-driver')) { self::clearDirectory($dir); } $ccm = new \CCM('', ''); $ccm->removeAllClusters(); }
/** * Destroy all CCM clusters when starting and stopping the integration tests. * This will only be run on startup and shutdown. */ private function removeTestClusters() { $ccm = new \CCM(CCM::DEFAULT_CASSANDRA_VERSION, true); $ccm->removeAllClusters(); }
function __destruct() { $this->ccm->removeAllClusters(); }