PHP Class AppserverIo\Appserver\Application\ApplicationTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$application Application The application instance we want to test.
$classLoaders AppserverIo\Storage\GenericStackable The storage for the class loaders.
$data AppserverIo\Storage\StackableStorage The storage for the naming directory data.
$managers AppserverIo\Storage\GenericStackable The storage for the managers.

Méthodes publiques

Méthode Description
setUp ( ) : void Initialize the instance to test.
testAddClassLoader ( ) : void Test if the class loader has been added successfully.
testAddManager ( ) : void Test if the manager instance has been added successfully.
testConstructor ( ) : void Test if the application has successfully been initialized.
testGetAppBase ( ) : void Test if the getter/setter for the app base works.
testGetBaseDirectory ( ) : void Test if the getter/setter for the base directory works.
testGetBaseDirectoryWithDirectoryToAppend ( ) : void Test if the passed directory will be appended correctly.
testGetCacheDir ( ) : void Test if the getter for the cache dir works.
testGetClassLoader ( ) : void Test if the getter for a certain class loader works.
testGetGroup ( ) : void Test if the getter for the group works.
testGetInvalidManager ( ) : void Test if the NULL will be returned for an invalid manager request.
testGetManagers ( ) : void Test if the added manager has been returned.
testGetName ( ) : void Test if the getter/setter for the application name works.
testGetSessionDir ( ) : void Test if the getter for the session dir works.
testGetUmask ( ) : void Test if the getter for the group works.
testGetUser ( ) : void Test if the getter for the user works.
testGetWebappPath ( ) : void Test if the getter for the webapp path works.
testInitializeManagers ( ) : void Test if the managers has been initialized successfully.
testInjectGetClassLoaders ( ) : void Test if the getter/setter for the class loaders works.
testInjectGetInitialContext ( ) : void Test if the getter/setter for the initial context works.
testInjectGetManagers ( ) : void Test if the getter/setter for the managers works.
testNewService ( ) : void Test if the newService() method will be forwarded to the initial context.
testRegisterClassLoaders ( ) : void Test if the class loaders has been registered successfully.
testSetGetAttribute ( ) : void Test if the class loader has been added successfully.

Method Details

setUp() public méthode

Initialize the instance to test.
public setUp ( ) : void
Résultat void

testAddClassLoader() public méthode

Test if the class loader has been added successfully.
public testAddClassLoader ( ) : void
Résultat void

testAddManager() public méthode

Test if the manager instance has been added successfully.
public testAddManager ( ) : void
Résultat void

testConstructor() public méthode

Test if the application has successfully been initialized.
public testConstructor ( ) : void
Résultat void

testGetAppBase() public méthode

Test if the getter/setter for the app base works.
public testGetAppBase ( ) : void
Résultat void

testGetBaseDirectory() public méthode

Test if the getter/setter for the base directory works.
public testGetBaseDirectory ( ) : void
Résultat void

testGetBaseDirectoryWithDirectoryToAppend() public méthode

Test if the passed directory will be appended correctly.

testGetCacheDir() public méthode

Test if the getter for the cache dir works.
public testGetCacheDir ( ) : void
Résultat void

testGetClassLoader() public méthode

Test if the getter for a certain class loader works.
public testGetClassLoader ( ) : void
Résultat void

testGetGroup() public méthode

Test if the getter for the group works.
public testGetGroup ( ) : void
Résultat void

testGetInvalidManager() public méthode

Test if the NULL will be returned for an invalid manager request.
public testGetInvalidManager ( ) : void
Résultat void

testGetManagers() public méthode

Test if the added manager has been returned.
public testGetManagers ( ) : void
Résultat void

testGetName() public méthode

Test if the getter/setter for the application name works.
public testGetName ( ) : void
Résultat void

testGetSessionDir() public méthode

Test if the getter for the session dir works.
public testGetSessionDir ( ) : void
Résultat void

testGetUmask() public méthode

Test if the getter for the group works.
public testGetUmask ( ) : void
Résultat void

testGetUser() public méthode

Test if the getter for the user works.
public testGetUser ( ) : void
Résultat void

testGetWebappPath() public méthode

Test if the getter for the webapp path works.
public testGetWebappPath ( ) : void
Résultat void

testInitializeManagers() public méthode

Test if the managers has been initialized successfully.
public testInitializeManagers ( ) : void
Résultat void

testInjectGetClassLoaders() public méthode

Test if the getter/setter for the class loaders works.
public testInjectGetClassLoaders ( ) : void
Résultat void

testInjectGetInitialContext() public méthode

Test if the getter/setter for the initial context works.
public testInjectGetInitialContext ( ) : void
Résultat void

testInjectGetManagers() public méthode

Test if the getter/setter for the managers works.
public testInjectGetManagers ( ) : void
Résultat void

testNewService() public méthode

Test if the newService() method will be forwarded to the initial context.
public testNewService ( ) : void
Résultat void

testRegisterClassLoaders() public méthode

Test if the class loaders has been registered successfully.
public testRegisterClassLoaders ( ) : void
Résultat void

testSetGetAttribute() public méthode

Test if the class loader has been added successfully.
public testSetGetAttribute ( ) : void
Résultat void

Property Details

$application protected_oe property

The application instance we want to test.
protected Application,AppserverIo\Appserver\Application $application
Résultat Application

$classLoaders protected_oe property

The storage for the class loaders.
protected GenericStackable,AppserverIo\Storage $classLoaders
Résultat AppserverIo\Storage\GenericStackable

$data protected_oe property

The storage for the naming directory data.
protected StackableStorage,AppserverIo\Storage $data
Résultat AppserverIo\Storage\StackableStorage

$managers protected_oe property

The storage for the managers.
protected GenericStackable,AppserverIo\Storage $managers
Résultat AppserverIo\Storage\GenericStackable