3 class QueryTest
extends PHPUnit_Framework_TestCase
18 /* prepare the query */
19 $c->properties('a,b')->where('a >', $val1)->where('b <', $val2)->where('c !=', $val3);
20 $c->sort('c DESC, a ASC')->limit($val4, $val5);
26 $sQuery = $c->getReference(true);
28 /* expected cursor info */
35 'a' => array('$gt' => $val1),
36 'b' => array('$lt' => $val2),
37 'c' => array('$ne' => $val3),
50 $this->assertEquals($sQuery['dynamic'], $eQuery);
53 function testOnQueryModifyError()
60 $this->assertTrue(false);
61 } catch (ActiveMongo_Exception
$e) {
62 $this->assertTrue(true);
70 foreach ($c as $item) {
71 $item_cloned = clone $item;