PHP Class Psecio\PropAuth\EnforcerTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: psecio/propauth

Méthodes publiques

Méthode Description
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)

Method Details

testAllowsSubjectInvalid() public méthode

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

testAllowsSubjectValid() public méthode

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

testGetPeopertyValueMethod() public méthode

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

testGetPropertyGetPropertyMethod() public méthode

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

testGetPropertyValuePublicProperty() public méthode

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

testPolicyNameNotFoundAllows() public méthode

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

testPolicyNameNotFoundDenies() public méthode

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

testSubjectDeniedInvalid() public méthode

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

testSubjectIsDenied() public méthode

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

testTriggerErrorWithoutPolicies() public méthode

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