query() публичный Метод

Accepts a string a query and returns the set of documents relevant to the query
public query ( string $queryStr ) : array
$queryStr string
Результат array
 public function testSingleTermSearchTermDoesNotExists()
 {
     $docs = array(new TokensDocument(array("no", "tokens")));
     $collection = new DocumentArrayCollection($docs);
     $builder = new CollectionInvertedIndexBuilder($collection);
     $adapter = new ArrayDataReaderAdapter($builder->getIndex());
     $invertedIndex = new InvertedIndex($adapter);
     $this->assertEquals(array(), $invertedIndex->query("none"));
     $this->assertEquals(array(), $invertedIndex->query("php"));
 }