/** * @param $facet * @return $this */ public function addFacet($facet) { $this->query->addFacet($facet); return $this; }
/** * @dataProvider invalidFacetDataProvider * @expectedException \InvalidArgumentException */ public function test_addFacet_only_accepts_strings($invalidFacet) { $query = new Query(); $query->addFacet($invalidFacet); }