public function testAddingToCriteriaWithOr() { $c = new Criteria('column > ?', 55); $c->or('column <> 0', 'column < 100')->and('column < 30'); $this->assertEquals("(((column > '55') OR column <> 0 OR column < 100) AND column < 30)", $c->toSql()); }