示例#1
0
文件: ModelTest.php 项目: titon/model
 public function testIsGuarded()
 {
     $profile = new Profile();
     $this->assertFalse($this->object->isGuarded('username'));
     $this->assertTrue($this->object->isGuarded('password'));
     $this->assertTrue($profile->isGuarded('lastLogin'));
     // All denied
 }