Documentation

DataObjectTest 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_Contents()  : mixed
test_Copy()  : mixed
test_Copy_Fails()  : mixed
test_Pseudo_Dirs()  : mixed
test_Public_Urls()  : mixed
test_Purge()  : mixed
test_Symlink_From()  : mixed
test_Symlink_From_Fails_With_NoName()  : mixed
test_Symlink_From_Fails_With_NotEmpty()  : mixed
test_Symlink_To()  : mixed
test_Symlink_To_Fails_With_NoName()  : mixed
test_Symlink_To_Fails_With_NotEmpty()  : mixed
test_Temp_Url_Fails_With_Incorrect_Method()  : mixed
test_Temp_Url_Inherits_Url_Type()  : mixed
test_temp_urls_can_be_forced_to_use_public_urls()  : mixed
test_Url_Fails()  : 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_Contents()

public test_Contents() : mixed
Tags
mockFile

Object

Return values
mixed

test_Copy_Fails()

public test_Copy_Fails() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\NoNameError

Return values
mixed

test_Pseudo_Dirs()

public test_Pseudo_Dirs() : mixed
Return values
mixed

test_Public_Urls()

public test_Public_Urls() : mixed
Return values
mixed

test_Purge()

public test_Purge() : mixed
Return values
mixed
public test_Symlink_From() : mixed
Return values
mixed
public test_Symlink_From_Fails_With_NoName() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\NoNameError

Return values
mixed
public test_Symlink_From_Fails_With_NotEmpty() : mixed
Tags
expectedException

OpenCloud\ObjectStore\Exception\ObjectNotEmptyException

Return values
mixed
public test_Symlink_To() : mixed
Return values
mixed
public test_Symlink_To_Fails_With_NoName() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\NoNameError

Return values
mixed
public test_Symlink_To_Fails_With_NotEmpty() : mixed
Tags
expectedException

OpenCloud\ObjectStore\Exception\ObjectNotEmptyException

Return values
mixed

test_Temp_Url_Fails_With_Incorrect_Method()

public test_Temp_Url_Fails_With_Incorrect_Method() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Temp_Url_Inherits_Url_Type()

public test_Temp_Url_Inherits_Url_Type() : mixed
Return values
mixed

test_temp_urls_can_be_forced_to_use_public_urls()

public test_temp_urls_can_be_forced_to_use_public_urls() : mixed
Return values
mixed

test_Url_Fails()

public test_Url_Fails() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\NoNameError

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