summaryrefslogtreecommitdiffstats
path: root/tests/Components/FunctionCallTest.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-10 01:45:45 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-10 03:47:19 +0300
commit527842708bf44fe2bb4d17a97203cec01b860960 (patch)
tree9eb52c23199199b721b5412e1c16d9129d624e52 /tests/Components/FunctionCallTest.php
parent7c925b68763e86be121664575632c9261d380821 (diff)
downloadsql-parser-527842708bf44fe2bb4d17a97203cec01b860960.zip
sql-parser-527842708bf44fe2bb4d17a97203cec01b860960.tar.gz
sql-parser-527842708bf44fe2bb4d17a97203cec01b860960.tar.bz2
Mass renaming. Using 'component' instead of 'fragment'.
Diffstat (limited to 'tests/Components/FunctionCallTest.php')
-rw-r--r--tests/Components/FunctionCallTest.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/Components/FunctionCallTest.php b/tests/Components/FunctionCallTest.php
new file mode 100644
index 0000000..b7f71ca
--- /dev/null
+++ b/tests/Components/FunctionCallTest.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace SqlParser\Tests\Components;
+
+use SqlParser\Components\ArrayObj;
+use SqlParser\Components\FunctionCall;
+
+use SqlParser\Tests\TestCase;
+
+class FunctionCallTest extends TestCase
+{
+
+ public function testBuildArray()
+ {
+ $component = new FunctionCall('func', array('a', 'b'));
+ $this->assertEquals('func(a, b)', FunctionCall::build($component));
+ }
+
+ public function testBuildArrayObj()
+ {
+ $component = new FunctionCall('func', new ArrayObj(array('a', 'b')));
+ $this->assertEquals('func(a, b)', FunctionCall::build($component));
+ }
+}