예제 #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
 }