public function testWhereGreaterOrEqual()
{
for ($i = 0; $i < 10; $i++) {
$this->collection->createDocument(array('p' => $i))->save();
}
$documents = $this->collection->find()->whereGreaterOrEqual('p', 4)->findAll();
$this->assertEquals(6, count($documents));
foreach ($documents as $document) {
$this->assertGreaterThanOrEqual(4, $document->p);
}
}