summaryrefslogtreecommitdiffstats
path: root/tests/Builder/InsertStatementTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Builder/InsertStatementTest.php')
-rw-r--r--tests/Builder/InsertStatementTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Builder/InsertStatementTest.php b/tests/Builder/InsertStatementTest.php
index 5dd6bc9..3fe6dd5 100644
--- a/tests/Builder/InsertStatementTest.php
+++ b/tests/Builder/InsertStatementTest.php
@@ -42,5 +42,16 @@ class InsertStatementTest extends TestCase
'INSERT INTO tbl SET FOO = 1',
$stmt->build()
);
+
+ /* Assertion 4 */
+ /* INSERT ... SELECT ... */
+ $parser = new Parser(
+ 'INSERT INTO tbl SELECT * FROM bar'
+ );
+ $stmt = $parser->statements[0];
+ $this->assertEquals(
+ 'INSERT INTO tbl SELECT * FROM bar ',
+ $stmt->build()
+ );
}
}