public function testBindToSphinxWillIgnoreQueryBuilderIfQuerySet()
 {
     $builder = $this->object->createQueryBuilder();
     $builder->in()->whereField()->contains('bob alan derek');
     $this->object->setQuery('sue alice colby');
     $this->object->bindToSphinx($this->I->getSphinxClientMock());
     $this->assertNotEquals('(bob alan derek)', $this->object->getQuery());
 }
 /**
  * Adds a search query, note: queries cannot be removed once added
  *
  * @param SearchQuery $query
  *
  * @return $this
  */
 public function addQuery(SearchQuery $query)
 {
     $query->bindToSphinx($this->getCurrentConnection());
     $this->queries[$query->getId()] = $query;
     return $this;
 }