Documentation

ContainerTest 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_Bad_Name_Url()  : mixed
test_Delete()  : mixed
test_Delete_NonEmpty_Container()  : mixed
test_Delete_NonExisting_Object()  : mixed
test_Delete_Object()  : mixed
test_Delete_Object_With_Failure()  : mixed
test_Get_Container()  : mixed
test_Get_Object()  : mixed
test_Get_Object_404()  : mixed
test_Get_Object_500()  : mixed
test_Large_Upload()  : mixed
test_Large_Upload_Fails_Without_Entity()  : mixed
test_Large_Upload_Fails_Without_Name()  : mixed
test_Large_Upload_With_Body()  : mixed
test_Metadata()  : mixed
test_Misc_Operations()  : mixed
test_NonCDN_Container()  : mixed
test_Object_Exists_False()  : mixed
test_Object_Exists_True()  : mixed
test_Object_List()  : mixed
test_Partial_Object()  : mixed
test_Quotas()  : mixed
test_Services()  : mixed
test_Upload()  : mixed
test_Upload_Multiple()  : mixed
test_Upload_Multiple_Fails_With_No_Data()  : mixed
test_Upload_Multiple_Fails_Without_Name()  : mixed
test_Upload_Multiple_Return_DataObject_Array()  : mixed
addMockSubscriber()  : mixed
getTestFilePath()  : mixed
parseDocBlock()  : mixed
setupCdnContainerMockResponse()  : mixed
getFilePath()  : 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_Bad_Name_Url()

public test_Bad_Name_Url() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\NoNameError

Return values
mixed

test_Delete()

public test_Delete() : mixed
Return values
mixed

test_Delete_NonEmpty_Container()

public test_Delete_NonEmpty_Container() : mixed
Tags
expectedException

\OpenCloud\ObjectStore\Exception\ContainerException

Return values
mixed

test_Delete_NonExisting_Object()

public test_Delete_NonExisting_Object() : mixed
Tags
expectedException

\Guzzle\Http\Exception\BadResponseException

Return values
mixed

test_Delete_Object()

public test_Delete_Object() : mixed
Return values
mixed

test_Delete_Object_With_Failure()

public test_Delete_Object_With_Failure() : mixed
Tags
expectedException

\Guzzle\Http\Exception\BadResponseException

Return values
mixed

test_Get_Container()

public test_Get_Container() : mixed
Return values
mixed

test_Get_Object()

public test_Get_Object() : mixed
Return values
mixed

test_Get_Object_404()

public test_Get_Object_404() : mixed
Tags
expectedException

\OpenCloud\ObjectStore\Exception\ObjectNotFoundException

Return values
mixed

test_Get_Object_500()

public test_Get_Object_500() : mixed
Tags
expectedException

\Guzzle\Http\Exception\BadResponseException

Return values
mixed

test_Large_Upload()

public test_Large_Upload() : mixed
Return values
mixed

test_Large_Upload_Fails_Without_Entity()

public test_Large_Upload_Fails_Without_Entity() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Large_Upload_Fails_Without_Name()

public test_Large_Upload_Fails_Without_Name() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Large_Upload_With_Body()

public test_Large_Upload_With_Body() : mixed
Return values
mixed

test_Metadata()

public test_Metadata() : mixed
Return values
mixed

test_Misc_Operations()

public test_Misc_Operations() : mixed
Return values
mixed

test_NonCDN_Container()

public test_NonCDN_Container() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\CdnNotAvailableError

Return values
mixed

test_Object_Exists_False()

public test_Object_Exists_False() : mixed
Tags
mockFile

Object_Metadata_404

Return values
mixed

test_Object_Exists_True()

public test_Object_Exists_True() : mixed
Tags
mockFile

Object_Metadata

Return values
mixed

test_Object_List()

public test_Object_List() : mixed
Return values
mixed

test_Partial_Object()

public test_Partial_Object() : mixed
Tags
mockFile

Object_Metadata

Return values
mixed

test_Quotas()

public test_Quotas() : mixed
Return values
mixed

test_Services()

public test_Services() : mixed
Return values
mixed

test_Upload()

public test_Upload() : mixed
Return values
mixed

test_Upload_Multiple()

public test_Upload_Multiple() : mixed
Return values
mixed

test_Upload_Multiple_Fails_With_No_Data()

public test_Upload_Multiple_Fails_With_No_Data() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Upload_Multiple_Fails_Without_Name()

public test_Upload_Multiple_Fails_Without_Name() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Upload_Multiple_Return_DataObject_Array()

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

getFilePath()

private getFilePath() : mixed
Return values
mixed

Search results