Skip to content

Commit

Permalink
Merge pull request #211 from harikt/3x-sqlite
Browse files Browse the repository at this point in the history
Add failing test for #183
  • Loading branch information
harikt authored Feb 27, 2022
2 parents 90aa74c + d811091 commit 1134687
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Parser/SqliteParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ protected function set_up()
{
$this->parser = new SqliteParser();
}

public function testIssue183()
{
$parameters = ['d' => 'foo'];
$sql = "SELECT \"a:A\", 'B:b', `c:c`, :d FROM table";
list ($statement, $values) = $this->rebuild($sql, $parameters);
$expectedStatement = "SELECT \"a:A\", 'B:b', `c:c`, :d FROM table";
$expectedValues = ['d' => 'foo'];
$this->assertEquals($expectedStatement, $statement);
$this->assertEquals($expectedValues, $values);
}
}

0 comments on commit 1134687

Please sign in to comment.