コード例 #1
0
ファイル: tests.php プロジェクト: 9618211/mongo-php-orm
 /** 
  * 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');
 }