Exemplo n.º 1
0
 public function __construct(Epic_Mongo_Document $document)
 {
     $this->_document = $document;
     $this->_properties = $document->getPropertyKeys();
     $this->_position = current($this->_properties);
     reset($this->_properties);
 }
Exemplo n.º 2
0
 public function testProperties()
 {
     $doc = new Epic_Mongo_Document();
     $this->assertFalse($doc->hasProperty('key'));
     $doc->setProperty('key', 'value');
     $this->assertTrue($doc->hasProperty('key'));
     $this->assertEquals('value', $doc->getProperty('key'));
     $this->assertEquals(array('key'), $doc->getPropertyKeys());
 }