diff --git a/tests/Translator/Mysql.php b/tests/Translator/Mysql.php index a9c1c5a..d00b2c7 100644 --- a/tests/Translator/Mysql.php +++ b/tests/Translator/Mysql.php @@ -61,6 +61,16 @@ public function testTable() { return $q->table('db.phpunit', 'foo')->select(); }); + + $this->assertQueryTranslation('select * from `db`.`phpunit` as `foo`', array(), function($q) + { + return $q->table('db.phpunit as foo')->select(); + }); + + $this->assertQueryTranslation('select * from `phpunit` as `foo`', array(), function($q) + { + return $q->table('phpunit as foo')->select(); + }); } /**