Documentation

ServiceRestTransportUnitTest extends TestCase
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

testCallRoute()  : void
Testing that route will be called
testErrorResponseException()  : void
Testing errorResponse method
testErrorResponseRestException()  : void
Testing errorResponse method
testOutputException()  : void
Testing method outputException
testPrivateCall()  : void
Testing private call with createSession method
testPublicCall()  : void
Testing public call without createSession method.
testSingleHeaderCall()  : void
Testing that header function is called once for each header
testSingleHeaderCallPublic()  : void
Testing that header function is called once for each header
getServiceLogicMock()  : object
Getting mock object.
getTransportMock()  : object
Getting mock object
getTransportMockEx()  : object
Getting tricky mock object
setUp()  : void
{@inheritdoc}
setupMethod()  : object
Setup method call
setupPrivateMethod()  : object
Setup method call

Methods

testErrorResponseException()

Testing errorResponse method

public testErrorResponseException() : void
Return values
void

testErrorResponseRestException()

Testing errorResponse method

public testErrorResponseRestException() : void
Return values
void

testPrivateCall()

Testing private call with createSession method

public testPrivateCall() : void
Return values
void

testPublicCall()

Testing public call without createSession method.

public testPublicCall() : void
Return values
void

testSingleHeaderCall()

Testing that header function is called once for each header

public testSingleHeaderCall() : void
Return values
void

testSingleHeaderCallPublic()

Testing that header function is called once for each header

public testSingleHeaderCallPublic() : void
Return values
void

getServiceLogicMock()

Getting mock object.

protected getServiceLogicMock() : object
Return values
object

ServiceLogic mocked object

getTransportMock()

Getting mock object

protected getTransportMock() : object
Return values
object

ServiceRestTransport mocked object

getTransportMockEx()

Getting tricky mock object

protected getTransportMockEx([string $mode = 'publicCall' ]) : object
Parameters
$mode : string = 'publicCall'
Return values
object

mock object

setupMethod()

Setup method call

protected setupMethod(string $methodName) : object
Parameters
$methodName : string

Method name

Return values
object

Mock object

setupPrivateMethod()

Setup method call

protected setupPrivateMethod(string $methodName) : object
Parameters
$methodName : string

Method name

Return values
object

Mock object

Search results

    Яндекс.Метрика