summaryrefslogtreecommitdiffstats
path: root/tests/Builder/StatementTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Builder/StatementTest.php')
-rw-r--r--tests/Builder/StatementTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/Builder/StatementTest.php b/tests/Builder/StatementTest.php
index fc646a8..0a65aac 100644
--- a/tests/Builder/StatementTest.php
+++ b/tests/Builder/StatementTest.php
@@ -32,14 +32,12 @@ class StatementTest extends TestCase
$stmt->limit = new LimitKeyword(1, 10);
- $builder = new Builder($stmt);
-
$this->assertEquals(
'SELECT DISTINCT sakila.film.film_id AS fid, COUNT(film_id) ' .
'FROM film, actor ' .
'WHERE film_id > 10 OR actor.age > 25 ' .
'LIMIT 10, 1 ',
- $builder->query
+ $stmt->build()
);
}
}