public function testAddQueryWithError() { $sphinx = new SphinxClient(); $sphinx->setMatchMode(SphinxClient::SPH_MATCH_EXTENDED); $sphinx->addQuery('@ccc'); $sphinx->addQuery('dddd'); $results = $sphinx->runQueries(); $this->assertEquals(count($results), 2); $this->assertGreaterThan(0, strlen($results[0]['error'])); }
/** * {@inheritdoc} */ public function setMatchMode($mode) { return $this->proxy->setMatchMode($mode); }