PHP Класс AppserverIo\Appserver\Application\ApplicationTest

Автор: Tim Wagner ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

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

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

Описание методов

setUp() публичный метод

Initialize the instance to test.
public setUp ( ) : void
Результат void

testAddClassLoader() публичный метод

Test if the class loader has been added successfully.
public testAddClassLoader ( ) : void
Результат void

testAddManager() публичный метод

Test if the manager instance has been added successfully.
public testAddManager ( ) : void
Результат void

testConstructor() публичный метод

Test if the application has successfully been initialized.
public testConstructor ( ) : void
Результат void

testGetAppBase() публичный метод

Test if the getter/setter for the app base works.
public testGetAppBase ( ) : void
Результат void

testGetBaseDirectory() публичный метод

Test if the getter/setter for the base directory works.
public testGetBaseDirectory ( ) : void
Результат void

testGetBaseDirectoryWithDirectoryToAppend() публичный метод

Test if the passed directory will be appended correctly.
public testGetBaseDirectoryWithDirectoryToAppend ( ) : void
Результат void

testGetCacheDir() публичный метод

Test if the getter for the cache dir works.
public testGetCacheDir ( ) : void
Результат void

testGetClassLoader() публичный метод

Test if the getter for a certain class loader works.
public testGetClassLoader ( ) : void
Результат void

testGetGroup() публичный метод

Test if the getter for the group works.
public testGetGroup ( ) : void
Результат void

testGetInvalidManager() публичный метод

Test if the NULL will be returned for an invalid manager request.
public testGetInvalidManager ( ) : void
Результат void

testGetManagers() публичный метод

Test if the added manager has been returned.
public testGetManagers ( ) : void
Результат void

testGetName() публичный метод

Test if the getter/setter for the application name works.
public testGetName ( ) : void
Результат void

testGetSessionDir() публичный метод

Test if the getter for the session dir works.
public testGetSessionDir ( ) : void
Результат void

testGetUmask() публичный метод

Test if the getter for the group works.
public testGetUmask ( ) : void
Результат void

testGetUser() публичный метод

Test if the getter for the user works.
public testGetUser ( ) : void
Результат void

testGetWebappPath() публичный метод

Test if the getter for the webapp path works.
public testGetWebappPath ( ) : void
Результат void

testInitializeManagers() публичный метод

Test if the managers has been initialized successfully.
public testInitializeManagers ( ) : void
Результат void

testInjectGetClassLoaders() публичный метод

Test if the getter/setter for the class loaders works.
public testInjectGetClassLoaders ( ) : void
Результат void

testInjectGetInitialContext() публичный метод

Test if the getter/setter for the initial context works.
public testInjectGetInitialContext ( ) : void
Результат void

testInjectGetManagers() публичный метод

Test if the getter/setter for the managers works.
public testInjectGetManagers ( ) : void
Результат void

testNewService() публичный метод

Test if the newService() method will be forwarded to the initial context.
public testNewService ( ) : void
Результат void

testRegisterClassLoaders() публичный метод

Test if the class loaders has been registered successfully.
public testRegisterClassLoaders ( ) : void
Результат void

testSetGetAttribute() публичный метод

Test if the class loader has been added successfully.
public testSetGetAttribute ( ) : void
Результат void

Описание свойств

$application защищенное свойство

The application instance we want to test.
protected Application,AppserverIo\Appserver\Application $application
Результат Application

$classLoaders защищенное свойство

The storage for the class loaders.
protected GenericStackable,AppserverIo\Storage $classLoaders
Результат AppserverIo\Storage\GenericStackable

$data защищенное свойство

The storage for the naming directory data.
protected StackableStorage,AppserverIo\Storage $data
Результат AppserverIo\Storage\StackableStorage

$managers защищенное свойство

The storage for the managers.
protected GenericStackable,AppserverIo\Storage $managers
Результат AppserverIo\Storage\GenericStackable