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.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Components/CaseExpressionTest.php b/tests/Components/CaseExpressionTest.php
index cb9290c..2ea8f8b 100644
--- a/tests/Components/CaseExpressionTest.php
+++ b/tests/Components/CaseExpressionTest.php
@@ -118,4 +118,10 @@ class CaseExpressionTest extends TestCase
'CASE WHEN 1=1 THEN "Some" WHEN 1=2 THEN "SomeOther" END AS `foo`'
);
}
+
+ public function testBuildWithIncompleteCaseExpression()
+ {
+ $incomplete_case_expression_component = new CaseExpression();
+ $this->assertEquals('CASE END', CaseExpression::build($incomplete_case_expression_component));
+ }
}