public function testClearCollections() { $this->distributedSearch->addCollections(array('collection1' => 'localhost:8983/solr/collection1', 'collection2' => 'localhost:8983/solr/collection2')); $this->distributedSearch->clearCollections(); $collections = $this->distributedSearch->getCollections(); $this->assertTrue(is_array($collections)); $this->assertEquals(0, count($collections)); }