/** * @test */ public function shouldCreateProperSql() { //given $restriction = Restrictions::lessOrEqualTo(5); //when $sql = $restriction->toSql('key'); //then $this->assertEquals('key <= ?', $sql); $this->assertEquals(array(5), $restriction->getValues()); }