Esempio n. 1
0
 public function testIsNewDocument()
 {
     $this->assertFalse($this->_bob->isNewDocument());
     $this->assertFalse($this->_bob->name->isNewDocument());
     $sarah = new My_ShantyMongo_User();
     $this->assertTrue($sarah->isNewDocument());
     $this->assertTrue($sarah->name->isNewDocument());
 }