PHP 클래스 AppserverIo\Appserver\Core\Api\AbstractServiceTest

저자: Bernhard Wick ([email protected])
저자: Tim Wagner ([email protected])
상속: extends AppserverIo\Appserver\Core\Api\AbstractServicesTest
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$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

testGetBaseDirectoryNothingToAppend() 공개 메소드

Tests the returning of a base directory without appending anything

testGetConfDirDirectoryAppended() 공개 메소드

Tests if returning the configuration dir + appendage works

testGetConfDirNothingToAppend() 공개 메소드

Tests if getting just the configuration directory works

testGetConfdDirDirectoryAppended() 공개 메소드

Tests if returning the configuration sub-dir + appendage works

testGetConfdDirNothingToAppend() 공개 메소드

Tests if getting just the configuration sub-directory works

testGetDeployDirDirectoryAppended() 공개 메소드

Tests if returning the deploy dir + appendage works

testGetDeployDirNothingToAppend() 공개 메소드

Tests if getting just the tmp directory works

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

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.

testGetSystemConfiguration() 공개 메소드

Test if the system configuration has successfully been initialized.
public testGetSystemConfiguration ( ) : null
리턴 null

testGetTmpDirDirectoryAppended() 공개 메소드

Tests if getting the tmp directory + an appendage works

testGetTmpDirNothingToAppend() 공개 메소드

Tests if getting just the tmp directory works
public testGetTmpDirNothingToAppend ( ) : null
리턴 null

testGetWebappsDirDirectoryAppended() 공개 메소드

Tests if returning the webapps dir + appendage works

testGetWebappsDirNothingToAppend() 공개 메소드

Tests if getting just the webapps directory works

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