/**
  * @depends testselectCS
  */
 public function testselectCL(SequoiaCS $cs)
 {
     $cl = $cs->selectCollection("cl_test", '{ ShardingKey:{id:1}, ShardingType:"range", ReplSize:0, Compressed:true }');
     $this->assertNotEmpty($cl);
     $array_option = array("ShardingKey" => array("id" => 1), "ShardingType" => "range", "ReplSize" => 0, "Compressed" => true);
     $cl2 = $cs->selectCollection("cl_test2", $array_option);
     $this->assertNotEmpty($cl2);
     return $cs;
 }
示例#2
0
 /**
  * @depends testselectCS
  */
 public function testselectCL(SequoiaCS $cs)
 {
     $cl = $cs->selectCollection("cl_test");
     $this->assertNotEmpty($cl);
     return $cl;
 }
示例#3
0
 /**
  * @depends testselectCS
  */
 public function testselectCL(SequoiaCS $cs)
 {
     $cl = $cs->selectCollection('cl_test', '{ReplSize:0}');
     $this->assertNotEmpty($cl);
     return $cl;
 }