@@ 59-67 (lines=9) @@ | ||
56 | $this->transform($qb, $dqlAlias)->shouldReturn($expression); |
|
57 | } |
|
58 | ||
59 | public function it_is_transformable_many_arguments(QueryBuilder $qb) |
|
60 | { |
|
61 | $dqlAlias = 'a'; |
|
62 | $expression = 'concat(a.foo, a.bar)'; |
|
63 | ||
64 | $this->beConstructedWith('concat', new Field('foo'), new Field('bar')); |
|
65 | ||
66 | $this->transform($qb, $dqlAlias)->shouldReturn($expression); |
|
67 | } |
|
68 | ||
69 | public function it_is_transformable_many_arguments_as_array(QueryBuilder $qb) |
|
70 | { |
|
@@ 69-77 (lines=9) @@ | ||
66 | $this->transform($qb, $dqlAlias)->shouldReturn($expression); |
|
67 | } |
|
68 | ||
69 | public function it_is_transformable_many_arguments_as_array(QueryBuilder $qb) |
|
70 | { |
|
71 | $dqlAlias = 'a'; |
|
72 | $expression = 'concat(a.foo, a.bar)'; |
|
73 | ||
74 | $this->beConstructedWith('concat', [new Field('foo'), new Field('bar')]); |
|
75 | ||
76 | $this->transform($qb, $dqlAlias)->shouldReturn($expression); |
|
77 | } |
|
78 | ||
79 | public function it_is_transformable_custom_string_function( |
|
80 | QueryBuilder $qb, |