/**
* @test
*/
public function shouldCreateProperSqlForSqlite()
{
//given
Config::overrideProperty('sql_dialect')->with('\\Ouzo\\Db\\Dialect\\Sqlite3Dialect');
$restriction = Restrictions::regexp('value');
//when
$sql = $restriction->toSql('key');
//then
$this->assertEquals('key REGEXP ?', $sql);
$this->assertEquals(array('value'), $restriction->getValues());
}