Documentation

ServiceTest extends ObjectStoreTestCase
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
$container  : mixed
$currentMockSubscriber  : mixed
$mockPath  : 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__construct()  : mixed
test_Accounts()  : mixed
test_Bad_Bulk_Delete()  : mixed
test_Bad_Bulk_Extract()  : mixed
test_Bad_Container_Name_Empty()  : mixed
test_Bad_Container_Name_Long()  : mixed
test_Bad_Container_Name_Slashes()  : mixed
test_Batch_Delete_Returns_Array_Of_Responses()  : mixed
test_Bulk_Delete()  : mixed
test_Bulk_Extract()  : mixed
test_Bulk_Extract_With_Incorrect_Type()  : mixed
test_Create_Container()  : mixed
test_Get_Bad_Container_Name_Empty()  : mixed
test_Get_Bad_Container_Name_Float()  : mixed
test_Get_Bad_Container_Name_Long()  : mixed
test_Get_Bad_Container_Name_Slashes()  : mixed
test_Get_Container_Integer()  : mixed
test_Get_Container_String()  : mixed
test_List_Containers()  : mixed
test_Url_Secret()  : mixed
addMockSubscriber()  : mixed
getTestFilePath()  : mixed
parseDocBlock()  : mixed
setupCdnContainerMockResponse()  : 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__construct()

public test__construct() : mixed
Return values
mixed

test_Accounts()

public test_Accounts() : mixed
Return values
mixed

test_Bad_Bulk_Delete()

public test_Bad_Bulk_Delete() : mixed
Tags
expectedException

OpenCloud\ObjectStore\Exception\BulkOperationException

Return values
mixed

test_Bad_Bulk_Extract()

public test_Bad_Bulk_Extract() : mixed
Tags
expectedException

OpenCloud\ObjectStore\Exception\BulkOperationException

Return values
mixed

test_Bad_Container_Name_Empty()

public test_Bad_Container_Name_Empty() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Bad_Container_Name_Long()

public test_Bad_Container_Name_Long() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Bad_Container_Name_Slashes()

public test_Bad_Container_Name_Slashes() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Batch_Delete_Returns_Array_Of_Responses()

public test_Batch_Delete_Returns_Array_Of_Responses() : mixed
Return values
mixed

test_Bulk_Delete()

public test_Bulk_Delete() : mixed
Return values
mixed

test_Bulk_Extract()

public test_Bulk_Extract() : mixed
Return values
mixed

test_Bulk_Extract_With_Incorrect_Type()

public test_Bulk_Extract_With_Incorrect_Type() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Create_Container()

public test_Create_Container() : mixed
Return values
mixed

test_Get_Bad_Container_Name_Empty()

public test_Get_Bad_Container_Name_Empty() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Get_Bad_Container_Name_Float()

public test_Get_Bad_Container_Name_Float() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Get_Bad_Container_Name_Long()

public test_Get_Bad_Container_Name_Long() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Get_Bad_Container_Name_Slashes()

public test_Get_Bad_Container_Name_Slashes() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Get_Container_Integer()

public test_Get_Container_Integer() : mixed
Return values
mixed

test_Get_Container_String()

public test_Get_Container_String() : mixed
Return values
mixed

test_List_Containers()

public test_List_Containers() : mixed
Return values
mixed

test_Url_Secret()

public test_Url_Secret() : mixed
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

setupCdnContainerMockResponse()

protected setupCdnContainerMockResponse() : mixed
Return values
mixed

Search results