Test class for AmfphpAuthentication.

package Tests_Amfphp_Plugins_Authentication
author Ariel Sommeria-klein

 Methods

test access without authentication

testAccessWithoutAuthentication() 
expectedException Amfphp_Core_Exception

test add role

testAddRole() 

test bad role

testBadRole() 
expectedException Amfphp_Core_Exception

test clear session info

testClearSessionInfo() 

test get amf request header handler filter

testGetAmfRequestHeaderHandlerFilter() 

test login and access

testLoginAndAccess() 

test logout

testLogout() 
expectedException Amfphp_Core_Exception

test normal access to unprotected methods

testNormalAccessToUnprotectedMethods() 

test with filters block access

testWithFiltersBlockAccess() 
expectedException Amfphp_Core_Exception

test with filters grant access

testWithFiltersGrantAccess() 

Sets up the fixture, for example, opens a network connection.

setUp() 

This method is called before a test is executed.

Tears down the fixture, for example, closes a network connection.

tearDown() 

This method is called after a test is executed.

 Properties

 

$object : \AmfphpAuthentication
 

$serviceObj : \AuthenticationService