Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information...
raul338 committed Nov 6, 2017
1 parent a8306cd commit 444f48716dddaa96a3a1b5fd5702dbfe0a58cdcc
@@ -79,7 +79,7 @@ public function testFunctionNesting()
$binder = new ValueBinder;
$f = new FunctionExpression('MyFunction', ['foo', 'bar']);
$g = new FunctionExpression('Wrapper', ['bar' => 'literal', $f]);
$this->assertEquals('Wrapper(bar, (MyFunction(:param0, :param1)))', $g->sql($binder));
$this->assertEquals('Wrapper(bar, MyFunction(:param0, :param1))', $g->sql($binder));
}
/**
@@ -158,7 +158,7 @@ public function testFunctionExpression()
$function = new FunctionExpression('DATE', ['2016-01'], ['test']);
$binder = new ValueBinder;
$sql = $function->sql($binder);
$this->assertEquals('DATE((CONCAT(:param0, :param1)))', $sql);
$this->assertEquals('DATE(CONCAT(:param0, :param1))', $sql);
$this->assertEquals('2016-01', $binder->bindings()[':param0']['value']);
$expressions = [];

0 comments on commit 444f487

Please sign in to comment.
You can’t perform that action at this time.