PHP Класс AppserverIo\Appserver\Core\Api\AbstractServiceTest

Автор: Bernhard Wick ([email protected])
Автор: Tim Wagner ([email protected])
Наследование: extends AppserverIo\Appserver\Core\Api\AbstractServicesTest
Показать файл Открыть проект

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

Свойство Тип Описание
$service PHPUnit_Framework_MockObject_MockObject | AbstractService The abstract service instance to test.

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

Метод Описание
setUp ( ) : null Initializes the service instance to test.
testGetBaseDirectoryDirectoryAppended ( ) : null Tests the returning of a base directory appended by a given string
testGetBaseDirectoryNothingToAppend ( ) : null Tests the returning of a base directory without appending anything
testGetConfDirDirectoryAppended ( ) : null Tests if returning the configuration dir + appendage works
testGetConfDirNothingToAppend ( ) : null Tests if getting just the configuration directory works
testGetConfdDirDirectoryAppended ( ) : null Tests if returning the configuration sub-dir + appendage works
testGetConfdDirNothingToAppend ( ) : null Tests if getting just the configuration sub-directory works
testGetDeployDirDirectoryAppended ( ) : null Tests if returning the deploy dir + appendage works
testGetDeployDirNothingToAppend ( ) : null Tests if getting just the tmp directory works
testGetDirectories ( ) : null Test if directories get taken from our system configuration
testGetInitialContext ( ) : null Test if the initial context has successfully been initialized.
testGetLogDirDirectoryAppended ( ) : null Tests if returning the log dir + appendage works
testGetLogDirNothingToAppend ( ) : null Tests if getting just the log directory works
testGetOsIdentifier ( ) : null Check if we get a correctly trimmed identifier within a possible range
testGetSetSystemConfiguration ( ) : null Test if the getter/setter for the system configuration.
testGetSystemConfiguration ( ) : null Test if the system configuration has successfully been initialized.
testGetTmpDirDirectoryAppended ( ) : null Tests if getting the tmp directory + an appendage works
testGetTmpDirNothingToAppend ( ) : null Tests if getting just the tmp directory works
testGetWebappsDirDirectoryAppended ( ) : null Tests if returning the webapps dir + appendage works
testGetWebappsDirNothingToAppend ( ) : null Tests if getting just the webapps directory works
testGlobDir ( ) : null Rests if we can glob directories and files as we should
testNewInstance ( ) : null Test the new instance method.
testNewService ( ) : null Test the new service method.
testPersist ( ) : null Dummy test as there currently is now functionality behind the actual method
testRealpath ( ) : null Test if building the absolute path works like it should

Защищенные методы

Метод Описание
getPartialServiceMock ( array $methodsToMock ) : PHPUnit_Framework_MockObject_MockObject | AbstractService Returns a partially mocked mock instance of our abstract service
skipOnWindows ( ) : null Use to skip your test on windows machines

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

getPartialServiceMock() защищенный Метод

Returns a partially mocked mock instance of our abstract service
protected getPartialServiceMock ( array $methodsToMock ) : PHPUnit_Framework_MockObject_MockObject | AbstractService
$methodsToMock array The methods we want to mock besides 'findAll' and 'load'
Результат PHPUnit_Framework_MockObject_MockObject | AbstractService

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

Initializes the service instance to test.
public setUp ( ) : null
Результат null

skipOnWindows() защищенный Метод

Use to skip your test on windows machines
protected skipOnWindows ( ) : null
Результат null

testGetBaseDirectoryDirectoryAppended() публичный Метод

Tests the returning of a base directory appended by a given string
public testGetBaseDirectoryDirectoryAppended ( ) : null
Результат null

testGetBaseDirectoryNothingToAppend() публичный Метод

Tests the returning of a base directory without appending anything
public testGetBaseDirectoryNothingToAppend ( ) : null
Результат null

testGetConfDirDirectoryAppended() публичный Метод

Tests if returning the configuration dir + appendage works
public testGetConfDirDirectoryAppended ( ) : null
Результат null

testGetConfDirNothingToAppend() публичный Метод

Tests if getting just the configuration directory works
public testGetConfDirNothingToAppend ( ) : null
Результат null

testGetConfdDirDirectoryAppended() публичный Метод

Tests if returning the configuration sub-dir + appendage works
public testGetConfdDirDirectoryAppended ( ) : null
Результат null

testGetConfdDirNothingToAppend() публичный Метод

Tests if getting just the configuration sub-directory works
public testGetConfdDirNothingToAppend ( ) : null
Результат null

testGetDeployDirDirectoryAppended() публичный Метод

Tests if returning the deploy dir + appendage works
public testGetDeployDirDirectoryAppended ( ) : null
Результат null

testGetDeployDirNothingToAppend() публичный Метод

Tests if getting just the tmp directory works
public testGetDeployDirNothingToAppend ( ) : null
Результат null

testGetDirectories() публичный Метод

Test if directories get taken from our system configuration
public testGetDirectories ( ) : null
Результат null

testGetInitialContext() публичный Метод

Test if the initial context has successfully been initialized.
public testGetInitialContext ( ) : null
Результат null

testGetLogDirDirectoryAppended() публичный Метод

Tests if returning the log dir + appendage works
public testGetLogDirDirectoryAppended ( ) : null
Результат null

testGetLogDirNothingToAppend() публичный Метод

Tests if getting just the log directory works
public testGetLogDirNothingToAppend ( ) : null
Результат null

testGetOsIdentifier() публичный Метод

Check if we get a correctly trimmed identifier within a possible range
См. также: https://en.wikipedia.org/wiki/Uname#Table_of_standard_uname_output
public testGetOsIdentifier ( ) : null
Результат null

testGetSetSystemConfiguration() публичный Метод

Test if the getter/setter for the system configuration.
public testGetSetSystemConfiguration ( ) : null
Результат null

testGetSystemConfiguration() публичный Метод

Test if the system configuration has successfully been initialized.
public testGetSystemConfiguration ( ) : null
Результат null

testGetTmpDirDirectoryAppended() публичный Метод

Tests if getting the tmp directory + an appendage works
public testGetTmpDirDirectoryAppended ( ) : null
Результат null

testGetTmpDirNothingToAppend() публичный Метод

Tests if getting just the tmp directory works
public testGetTmpDirNothingToAppend ( ) : null
Результат null

testGetWebappsDirDirectoryAppended() публичный Метод

Tests if returning the webapps dir + appendage works
public testGetWebappsDirDirectoryAppended ( ) : null
Результат null

testGetWebappsDirNothingToAppend() публичный Метод

Tests if getting just the webapps directory works
public testGetWebappsDirNothingToAppend ( ) : null
Результат null

testGlobDir() публичный Метод

Rests if we can glob directories and files as we should
public testGlobDir ( ) : null
Результат null

testNewInstance() публичный Метод

Test the new instance method.
public testNewInstance ( ) : null
Результат null

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

Test the new service method.
public testNewService ( ) : null
Результат null

testPersist() публичный Метод

Dummy test as there currently is now functionality behind the actual method
public testPersist ( ) : null
Результат null

testRealpath() публичный Метод

Test if building the absolute path works like it should
public testRealpath ( ) : null
Результат null

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

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

The abstract service instance to test.
protected PHPUnit_Framework_MockObject_MockObject|AbstractService,AppserverIo\Appserver\Core\Api $service
Результат PHPUnit_Framework_MockObject_MockObject | AbstractService