예제 #1
0
 public function testClearShards()
 {
     $this->distributedSearch->addShards(array('shard1' => 'localhost:8983/solr/shard1', 'shard2' => 'localhost:8983/solr/shard2'));
     $this->distributedSearch->clearShards();
     $shards = $this->distributedSearch->getShards();
     $this->assertTrue(is_array($shards));
     $this->assertEquals(0, count($shards));
 }