public function testClearReplicas() { $this->distributedSearch->addReplicas(array('replica1' => 'localhost:8983/solr/replica1', 'replica2' => 'localhost:8983/solr/replica2')); $this->distributedSearch->clearReplicas(); $replicas = $this->distributedSearch->getReplicas(); $this->assertTrue(is_array($replicas)); $this->assertEquals(0, count($replicas)); }