public function testIsValid_FieldGreater()
{
// mock of document
$document = $this->getMock('\\Sokil\\Mongo\\Document', array('rules'), array($this->collection));
$document->expects($this->any())->method('rules')->will($this->returnValue(array(array('some-field-name', 'greater', 'than' => 6))));
$document->set('some-field-name', 1);
$this->assertFalse($document->isValid());
$document->set('some-field-name', 6);
$this->assertFalse($document->isValid());
$document->set('some-field-name', 9);
$this->assertTrue($document->isValid());
}