public function testReturnsKeyspaceSchema()
 {
     $info = $this->cassandra->getKeyspaceSchema('CassandraTest', true);
     $this->cassandra->getKeyspaceSchema();
     // coverage
     $this->assertEquals($info['column-families']['user']['name'], 'user');
 }
 /**
  * Returns the schema description of current column family.
  *
  * @param boolean $useCache Should cache be used if possible
  * @return array Schema description
  * @throws CassandraColumnFamilyNotFoundException If not found
  */
 public function getSchema($useCache = true)
 {
     if ($this->schema === null) {
         $keyspaceSchema = $this->cassandra->getKeyspaceSchema(null, $useCache);
         if (!isset($keyspaceSchema['column-families'][$this->name])) {
             throw new CassandraColumnFamilyNotFoundException('Schema for column family "' . $this->name . '" not found');
         }
         $this->schema = $keyspaceSchema['column-families'][$this->name];
     }
     return $this->schema;
 }