removeAllClusters() public method

public removeAllClusters ( $is_all = false )
示例#1
0
 /**
  * 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();
 }
示例#2
0
 /**
  * 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();
 }
示例#3
0
 function __destruct()
 {
     $this->ccm->removeAllClusters();
 }