Browse Source

Update: FunctionExpressionTest::testFunctionNesting()

Stew Eucen 10 years ago
parent
commit
5806a55fd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Database/Expression/FunctionExpressionTest.php

+ 1 - 1
tests/TestCase/Database/Expression/FunctionExpressionTest.php

@@ -79,7 +79,7 @@ class FunctionExpressionTest extends TestCase
         $binder = new ValueBinder;
         $f = new FunctionExpression('MyFunction', ['foo', 'bar']);
         $g = new FunctionExpression('Wrapper', ['bar' => 'literal', $f]);
-        $this->assertEquals("Wrapper(bar, MyFunction(:c0, :c1))", $g->sql($binder));
+        $this->assertEquals("Wrapper(bar, (MyFunction(:c0, :c1)))", $g->sql($binder));
     }
 
     /**