Esempio n. 1
0
 /** 
  * Test if update correctly ignores private attributes
  */
 public function testUpdateIgnoresPrivate()
 {
     $m = new TestModel();
     $m->setSecret('foo');
     $m->update();
     // After reloading object, _secret should be back to default value
     $m = new TestModel($m->_id);
     $this->assertNotEquals($m->getSecret(), 'foo');
 }