PHP 클래스 Psecio\PropAuth\EnforcerTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: psecio/propauth

공개 메소드들

메소드 설명
testAllowsSubjectInvalid ( ) Test that a false is returned when the user is not allowed by the policy
testAllowsSubjectValid ( ) Test that a subject is correctly allowed when the policy matches on "allows" call
testGetPeopertyValueMethod ( ) Test the getting of a value from a getter on the subject
testGetPropertyGetPropertyMethod ( ) Test the getting of a peoperty on the subject via a "getPropery" method
testGetPropertyValuePublicProperty ( ) Test the getting of a value as a public property on the subject
testPolicyNameNotFoundAllows ( ) Test that an exception is thrown when teh policy name isn't found
testPolicyNameNotFoundDenies ( ) Test that an exception is thrown when the policy is not in the set on a "denies" call
testSubjectDeniedInvalid ( ) Test that, when the policy actually matches, the result of a "denies" call is false
testSubjectIsDenied ( ) Test that a subject is correctly denined (the policy is not a match)
testTriggerErrorWithoutPolicies ( ) Test that a warning is thrown when the policy is empty (no checks)

메소드 상세

testAllowsSubjectInvalid() 공개 메소드

Test that a false is returned when the user is not allowed by the policy

testAllowsSubjectValid() 공개 메소드

Test that a subject is correctly allowed when the policy matches on "allows" call

testGetPeopertyValueMethod() 공개 메소드

Test the getting of a value from a getter on the subject

testGetPropertyGetPropertyMethod() 공개 메소드

Test the getting of a peoperty on the subject via a "getPropery" method

testGetPropertyValuePublicProperty() 공개 메소드

Test the getting of a value as a public property on the subject

testPolicyNameNotFoundAllows() 공개 메소드

Test that an exception is thrown when teh policy name isn't found

testPolicyNameNotFoundDenies() 공개 메소드

Test that an exception is thrown when the policy is not in the set on a "denies" call

testSubjectDeniedInvalid() 공개 메소드

Test that, when the policy actually matches, the result of a "denies" call is false

testSubjectIsDenied() 공개 메소드

Test that a subject is correctly denined (the policy is not a match)
public testSubjectIsDenied ( )

testTriggerErrorWithoutPolicies() 공개 메소드

Test that a warning is thrown when the policy is empty (no checks)