/** * A boolean flag to enable or disable diacritic sensitive search for $text * criteria. * * This method must be called after text(). * * @see Builder::diacriticSensitive() * @see http://docs.mongodb.org/manual/reference/operator/text/ * @param bool $diacriticSensitive * @return $this * @throws BadMethodCallException if the query does not already have $text criteria * * @since 1.3 */ public function diacriticSensitive($diacriticSensitive) { $this->expr->diacriticSensitive($diacriticSensitive); return $this; }
/** * @expectedException BadMethodCallException */ public function testDiacriticSensitiveRequiresTextOperator() { $expr = new Expr(); $expr->diacriticSensitive('en'); }