From d3444076367c27d3bd41bd0cffe6432f5fa92cd5 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Fri, 7 Sep 2012 11:52:18 +0200 Subject: [PATCH] added test case --- tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php b/tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php index 1f0445c08..f71c5c7f1 100644 --- a/tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php +++ b/tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php @@ -100,6 +100,11 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase $this->assertValidDQL('SELECT COUNT(u.id) FROM Doctrine\Tests\Models\CMS\CmsUser u'); } + public function testMultipleParenthesisInSelect() + { + $this->assertValidDQL('SELECT (((u.id))) as v FROM Doctrine\Tests\Models\CMS\CmsUser u'); + } + public function testDuplicatedAliasInAggregateFunction() { $this->assertInvalidDQL('SELECT COUNT(u.id) AS num, SUM(u.id) AS num FROM Doctrine\Tests\Models\CMS\CmsUser u');