コード例 #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
 }