Documentation

QueueTest extends QueuesTestCase
in package

Table of Contents

ANNOTATION_FILE  = 'mockFile'
ANNOTATION_PATH  = 'mockPath'
COLLECTION_CLASS  = 'OpenCloud\Common\Collection\ResourceIterator'
RESPONSE_CLASS  = 'Guzzle\Http\Message\Response'
$client  : mixed
$currentMockSubscriber  : mixed
$mockPath  : mixed
$queue  : mixed
$service  : mixed
$testDir  : mixed
$testExt  : mixed
getClient()  : mixed
handleMockSubscribers()  : mixed
invokeMethod()  : mixed
Call protected/private method of a class.
isCollection()  : mixed
isResponse()  : mixed
makeResponse()  : mixed
newClient()  : mixed
setUp()  : mixed
setupObjects()  : mixed
tearDown()  : mixed
test_Claim_Messages()  : mixed
test_Claim_Messages_Fails_If_Queue_Not_Found()  : mixed
test_Create()  : mixed
test_Create_Fails_With_Incorrect_Name()  : mixed
test_Create_Fails_With_Incorrect_Response()  : mixed
test_Delete()  : mixed
test_Delete_Message()  : mixed
test_Get_Message()  : mixed
test_Getting_Claim()  : mixed
test_List_Message()  : mixed
test_List_Messages_Boolean_Casting()  : mixed
test_Metadata()  : mixed
test_Metadata_Fails_If_Queue_Not_Found()  : mixed
test_SetMetadata_Fails_Without_Correct_Data()  : mixed
test_Stats()  : mixed
test_Update_Fails()  : mixed
addMockSubscriber()  : mixed
getTestFilePath()  : mixed
parseDocBlock()  : mixed

Constants

COLLECTION_CLASS

public mixed COLLECTION_CLASS = 'OpenCloud\Common\Collection\ResourceIterator'

Properties

Methods

handleMockSubscribers()

public handleMockSubscribers() : mixed
Return values
mixed

invokeMethod()

Call protected/private method of a class.

public invokeMethod(object &$object, string $methodName[, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
$object : object

Instantiated object that we will run method on.

$methodName : string

Method name to call

$parameters : array<string|int, mixed> = array()

Array of parameters to pass into method.

Return values
mixed

Method return.

isCollection()

public isCollection(mixed $object) : mixed
Parameters
$object : mixed
Return values
mixed

isResponse()

public isResponse(mixed $object) : mixed
Parameters
$object : mixed
Return values
mixed

makeResponse()

public makeResponse([mixed $body = null ][, mixed $status = 200 ]) : mixed
Parameters
$body : mixed = null
$status : mixed = 200
Return values
mixed

test_Claim_Messages()

public test_Claim_Messages() : mixed
Return values
mixed

test_Claim_Messages_Fails_If_Queue_Not_Found()

public test_Claim_Messages_Fails_If_Queue_Not_Found() : mixed
Tags
expectedException

\Guzzle\Http\Exception\ClientErrorResponseException

Return values
mixed

test_Create()

public test_Create() : mixed
Return values
mixed

test_Create_Fails_With_Incorrect_Name()

public test_Create_Fails_With_Incorrect_Name() : mixed
Tags
expectedException

OpenCloud\Queues\Exception\QueueException

Return values
mixed

test_Create_Fails_With_Incorrect_Response()

public test_Create_Fails_With_Incorrect_Response() : mixed
Tags
expectedException

\Guzzle\Http\Exception\ClientErrorResponseException

Return values
mixed

test_Delete()

public test_Delete() : mixed
Return values
mixed

test_Delete_Message()

public test_Delete_Message() : mixed
Return values
mixed

test_Get_Message()

public test_Get_Message() : mixed
Return values
mixed

test_Getting_Claim()

public test_Getting_Claim() : mixed
Return values
mixed

test_List_Message()

public test_List_Message() : mixed
Return values
mixed

test_List_Messages_Boolean_Casting()

public test_List_Messages_Boolean_Casting() : mixed
Return values
mixed

test_Metadata()

public test_Metadata() : mixed
Return values
mixed

test_Metadata_Fails_If_Queue_Not_Found()

public test_Metadata_Fails_If_Queue_Not_Found() : mixed
Tags
expectedException

\Guzzle\Http\Exception\ClientErrorResponseException

Return values
mixed

test_SetMetadata_Fails_Without_Correct_Data()

public test_SetMetadata_Fails_Without_Correct_Data() : mixed
Tags
expectedException

\InvalidArgumentException

Return values
mixed

test_Stats()

public test_Stats() : mixed
Return values
mixed

test_Update_Fails()

public test_Update_Fails() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\UpdateError

Return values
mixed

addMockSubscriber()

protected addMockSubscriber(mixed $response) : mixed
Parameters
$response : mixed
Return values
mixed

getTestFilePath()

protected getTestFilePath(mixed $file[, mixed $mockPath = null ]) : mixed
Parameters
$file : mixed
$mockPath : mixed = null
Return values
mixed

parseDocBlock()

protected static parseDocBlock(mixed $string[, mixed $annotation = self::ANNOTATION_FILE ]) : mixed
Parameters
$string : mixed
$annotation : mixed = self::ANNOTATION_FILE
Return values
mixed

Search results