PHP Class ZfcRbacTest\Collector\RbacCollectorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: zf-commons/zfc-rbac

Public Methods

Method Description
testCanCollect ( )
testCollectNothingIfNoApplicationIsSet ( )
testCollectPermissionsMethod ( ) Tests the collectPermissions method when the role has a getPermissions() method
testCollectPermissionsProperty ( ) Tests the collectPermissions method when the role has a $permissions Property
testDefaultGetterReturnValues ( )
testSerialize ( )
testUnserialize ( )
testUnserializeThrowsInvalidArgumentException ( )

Private Methods

Method Description
collectPermissionsPropertyTestBase ( Rbac\Role\RoleInterface $role ) : array | string[] Base method for the *collectPermissionProperty tests

Method Details

testCanCollect() public method

public testCanCollect ( )

testCollectNothingIfNoApplicationIsSet() public method

testCollectPermissionsMethod() public method

Tests the collectPermissions method when the role has a getPermissions() method

testCollectPermissionsProperty() public method

Tests the collectPermissions method when the role has a $permissions Property

testDefaultGetterReturnValues() public method

testSerialize() public method

public testSerialize ( )

testUnserialize() public method

public testUnserialize ( )

testUnserializeThrowsInvalidArgumentException() public method