PHP 클래스 Jyxo\Rpc\ServerTestCase

또한 보기: Jyxo\Rpc\Json\Server
또한 보기: Jyxo\Rpc\Xml\Server
저자: Jan Pěček
저자: Jaroslav Hanslík
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: jyxo/php

공개 메소드들

메소드 설명
logCallback ( string $method, array $params, mixed $result ) : array Callback function to alter log messages.
testClone ( ) Tests clone-preventing.
testEmptyLogFile ( ) Tests setting an empty log file.
testLog ( ) Tests logging.
testParseError ( ) Tests bad request (parse error)
testProcessFunction ( ) Tests calling a function registered as a method.
testProcessMethodByCall ( ) Tests method call using a __call magic function.
testProcessMethodByCallStatic ( ) Tests method call using a __callStatic magic function.
testProcessMethodRegisteredByClass ( ) Tests calling a method registered using the whole class.
testProcessMethodWithFullName ( ) Tests method call using the full name.
testProcessMethodWithShortName ( ) Tests method call using the short name.
testProcessNonExistingMethod ( ) Tests calling a non-existent method.
testProcessStaticMethod ( ) Tests method call using a static method.
testRegisterMethodInNonExistingClass ( ) Tests registering a method of a non-existent class.
testRegisterNonExistingClass ( ) Tests registering of a non-existent class.
testRegisterNonExistingFunction ( ) Tests registering a non-existent function.
testRegisterNonExistingMethod ( ) Tests registering a non-existent method.
testRegisterNonPublicMethod ( ) Tests registering a non-public method.

보호된 메소드들

메소드 설명
getFileExtension ( ) : string Returns test files extension.
getServerInstance ( ) : Server Returns server instance.
setUp ( ) Sets the testing environment.
tearDown ( ) Cleans up the environment after testing.

비공개 메소드들

메소드 설명
checkServerOutput ( string $test ) Checks server response.
getFilePath ( string $file ) : string Returns file path.

메소드 상세

getFileExtension() 추상적인 보호된 메소드

Returns test files extension.
abstract protected getFileExtension ( ) : string
리턴 string

getServerInstance() 추상적인 보호된 메소드

Returns server instance.
abstract protected getServerInstance ( ) : Server
리턴 Server

logCallback() 공개 정적인 메소드

Callback function to alter log messages.
public static logCallback ( string $method, array $params, mixed $result ) : array
$method string Log method
$params array Log parameters
$result mixed Function result
리턴 array

setUp() 보호된 메소드

Sets the testing environment.
protected setUp ( )

tearDown() 보호된 메소드

Cleans up the environment after testing.
protected tearDown ( )

testClone() 공개 메소드

Tests clone-preventing.
public testClone ( )

testEmptyLogFile() 공개 메소드

Tests setting an empty log file.
public testEmptyLogFile ( )

testLog() 공개 메소드

Tests logging.
public testLog ( )

testParseError() 공개 메소드

Tests bad request (parse error)
public testParseError ( )

testProcessFunction() 공개 메소드

Tests calling a function registered as a method.
public testProcessFunction ( )

testProcessMethodByCall() 공개 메소드

Tests method call using a __call magic function.

testProcessMethodByCallStatic() 공개 메소드

Tests method call using a __callStatic magic function.

testProcessMethodRegisteredByClass() 공개 메소드

Tests calling a method registered using the whole class.

testProcessMethodWithFullName() 공개 메소드

Tests method call using the full name.

testProcessMethodWithShortName() 공개 메소드

Tests method call using the short name.

testProcessNonExistingMethod() 공개 메소드

Tests calling a non-existent method.

testProcessStaticMethod() 공개 메소드

Tests method call using a static method.

testRegisterMethodInNonExistingClass() 공개 메소드

Tests registering a method of a non-existent class.

testRegisterNonExistingClass() 공개 메소드

Tests registering of a non-existent class.

testRegisterNonExistingFunction() 공개 메소드

Tests registering a non-existent function.

testRegisterNonExistingMethod() 공개 메소드

Tests registering a non-existent method.

testRegisterNonPublicMethod() 공개 메소드

Tests registering a non-public method.