/** * @test */ public function shouldHandleRightExclusiveMode() { //given $restriction = Restrictions::between(1, 3, Between::RIGHT_EXCLUSIVE); //when $sql = $restriction->toSql('key'); //then $this->assertEquals('(key >= ? AND key < ?)', $sql); }