public function testCriteriaConcat() { $c = new Criteria(); $c = $c->or(Criteria::concatAnd('a > 1', $c->bind('b != ?', 'blargh')), 'x = 1'); $this->assertEquals("((a > 1 AND b != 'blargh') OR x = 1)", $c->toSql()); }