Documentation

PersistentObjectTest extends OpenCloudTestCase
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
$testDir  : mixed
$testExt  : mixed
$instance  : mixed
$service  : 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__construct2()  : mixed
test_Json_Name_Fails_If_Not_Set()  : mixed
testAction()  : mixed
testActionFailsWhenNotValidObject()  : mixed
testActionWhenNoId()  : mixed
testCheckExtension()  : mixed
testCreate()  : mixed
testCreateUrl()  : mixed
testGetNameFailsWhenNoName()  : mixed
testGettingSelfLinkFailsIfNotSet()  : mixed
testId()  : mixed
testJsonCollectionName()  : mixed
testJsonName()  : mixed
testName()  : mixed
testNoCreate()  : mixed
testNoDelete()  : mixed
testNoUpdate()  : mixed
testParent()  : mixed
testRefresh()  : mixed
testRefreshFailsWithoutId()  : mixed
testRegion()  : mixed
testResourceName()  : mixed
testResourceNameFailsIfNotSet()  : mixed
testService()  : mixed
testStatus()  : mixed
testUrl()  : mixed
testUrl2()  : mixed
testWaitFor()  : mixed
WaitForCallBack()  : 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__construct2()

public test__construct2() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\InvalidArgumentError

Return values
mixed

test_Json_Name_Fails_If_Not_Set()

public test_Json_Name_Fails_If_Not_Set() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\DocumentError

Return values
mixed

testActionFailsWhenNotValidObject()

public testActionFailsWhenNotValidObject() : mixed
Tags
expectedException

\InvalidArgumentException

Return values
mixed

testActionWhenNoId()

public testActionWhenNoId() : mixed
Tags
expectedException

\RuntimeException

Return values
mixed

testCheckExtension()

public testCheckExtension() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\UnsupportedExtensionError

Return values
mixed

testCreate()

public testCreate() : mixed
Tags
expectedException

\RuntimeException

Return values
mixed

testGetNameFailsWhenNoName()

public testGetNameFailsWhenNoName() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\NameError

Return values
mixed

testGettingSelfLinkFailsIfNotSet()

public testGettingSelfLinkFailsIfNotSet() : mixed
Return values
mixed

testJsonCollectionName()

public testJsonCollectionName() : mixed
Return values
mixed

testNoCreate()

public testNoCreate() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\CreateError

Return values
mixed

testNoDelete()

public testNoDelete() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\DeleteError

Return values
mixed

testNoUpdate()

public testNoUpdate() : mixed
Tags
expectedException

\OpenCloud\Common\Exceptions\UpdateError

Return values
mixed

testRefresh()

public testRefresh() : mixed
Tags
mockFile

Server

mockPath

Compute

Return values
mixed

testRefreshFailsWithoutId()

public testRefreshFailsWithoutId() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\IdRequiredError

Return values
mixed

testResourceNameFailsIfNotSet()

public testResourceNameFailsIfNotSet() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\UrlError

Return values
mixed

WaitForCallBack()

public WaitForCallBack(mixed $server) : mixed
Parameters
$server : 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

Search results