PHP Класс Psecio\PropAuth\EnforcerTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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)