public function testWhereOr()
{
// create new document
$document1 = $this->collection->createDocument(array('param1' => 'p11', 'param2' => 'p12'));
$document1->save();
$document1Id = $document1->getId();
$document2 = $this->collection->createDocument(array('param1' => 'p21', 'param2' => 'p22'));
$document2->save();
$document2Id = $document2->getId();
// find
$q1 = $this->collection->find();
$this->assertEquals($document1Id, $q1->whereOr($q1->expression()->where('param1', 'p11')->where('param2', 'p12'), $q1->expression()->where('param1', 'p11')->where('some', 'some'))->findOne()->getId());
$q2 = $this->collection->find();
$this->assertEquals($document2Id, $q2->whereOr($q2->expression()->where('param1', 'p21'), $q2->expression()->where('param', '2'))->findOne()->getId());
}