/** * @param string $whereOperator * * @return Where */ public function where($whereOperator = 'AND') { if (!isset($this->where)) { $this->where = $this->filter(); } $this->where->conjunction($whereOperator); return $this->where; }
/** * @test */ public function itShouldThrowExceptionOnUnknownConjunction() { $this->setExpectedException($this->queryException); $this->where->conjunction('NOT_VALID_CONJUNCTION'); }