コード例 #1
0
ファイル: PandraCoreTest.php プロジェクト: ruflin/Pandra
 public function getSetConsistency()
 {
     $newC = cassandra_ConsistencyLevel::QUORUM;
     PandraCore::setConsistency($newC);
     $this->assertTrue(PandraCore::getConsistency() == $newC);
     $this->assertTrue(PandraCore::getConsistency(cassandra_ConsistencyLevel::ONE) == cassandra_ConsistencyLevel::ONE);
 }