summaryrefslogtreecommitdiffstats
path: root/tests/Components/CaseExpressionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/CaseExpressionTest.php')
-rw-r--r--tests/Components/CaseExpressionTest.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/Components/CaseExpressionTest.php b/tests/Components/CaseExpressionTest.php
index 475486f..52078ef 100644
--- a/tests/Components/CaseExpressionTest.php
+++ b/tests/Components/CaseExpressionTest.php
@@ -13,7 +13,8 @@ class CaseExpressionTest extends TestCase
$caseExprQuery = 'case 1 when 1 then "Some" else "Other" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE 1 WHEN 1 THEN "Some" ELSE "Other" END'
@@ -25,7 +26,8 @@ class CaseExpressionTest extends TestCase
$caseExprQuery = 'case when 1=1 then "India" else "Other" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE WHEN 1=1 THEN "India" ELSE "Other" END'
@@ -38,7 +40,8 @@ class CaseExpressionTest extends TestCase
. 'when 2 then "SomeOther" else "Other" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE 1 WHEN 1 THEN "Some" WHEN 2 THEN "SomeOther" ELSE "Other" END'
@@ -51,7 +54,8 @@ class CaseExpressionTest extends TestCase
. 'when 2 then "SomeOther" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE 1 WHEN 1 THEN "Some" WHEN 2 THEN "SomeOther" END'
@@ -64,7 +68,8 @@ class CaseExpressionTest extends TestCase
. 'when 1=2 then "SomeOther" else "Other" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" ELSE "Other" END'
@@ -77,7 +82,8 @@ class CaseExpressionTest extends TestCase
. 'when 1=2 then "SomeOther" end';
$component = CaseExpression::parse(
new Parser(),
- $this->getTokensList($caseExprQuery));
+ $this->getTokensList($caseExprQuery)
+ );
$this->assertEquals(
CaseExpression::build($component),
'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" END'