summaryrefslogtreecommitdiffstats
path: root/tests/Utils/MiscTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Utils/MiscTest.php')
-rw-r--r--tests/Utils/MiscTest.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/Utils/MiscTest.php b/tests/Utils/MiscTest.php
index 55b9c91..da036e0 100644
--- a/tests/Utils/MiscTest.php
+++ b/tests/Utils/MiscTest.php
@@ -100,7 +100,22 @@ class MiscTest extends TestCase
'',
null,
array()
- )
+ ),
+ array(
+ 'SELECT * FROM orders AS ord WHERE 1',
+ 'db',
+ array(
+ 'db' => array(
+ 'alias' => null,
+ 'tables' => array(
+ 'orders' => array(
+ 'alias' => 'ord',
+ 'columns' => array(),
+ )
+ ),
+ ),
+ )
+ ),
);
}
}