Esempio n. 1
0
 /**
  * Describe a named keyspace
  */
 public function testGetKeyspace()
 {
     $ks = PandraCore::getKeyspace('Keyspace1');
     $this->assertTrue(is_array($ks) && !empty($ks));
     // While we don't care about the individual ColumnFamilies, we should
     // at least be able to pull out the default Standard1 CF Cassandra rolls out with
     $expectedKeys = array('CompareWith', 'Type', 'Desc');
     $diff = array_diff($expectedKeys, array_keys($ks['Standard1']));
     $this->assertTrue(empty($diff));
 }