Documentation

PropertyTest 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
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_Enum_Validation()  : mixed
test_Factory()  : mixed
test_Get_Path()  : mixed
test_Items()  : mixed
test_Pattern_Validation()  : mixed
test_Successful_Validation()  : mixed
test_Type_Validation()  : mixed
test_Value()  : mixed
addMockSubscriber()  : mixed
getData()  : 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_Enum_Validation()

public test_Enum_Validation() : mixed
Return values
mixed

test_Factory()

public test_Factory() : mixed
Return values
mixed

test_Get_Path()

public test_Get_Path() : mixed
Return values
mixed

test_Items()

public test_Items() : mixed
Return values
mixed

test_Pattern_Validation()

public test_Pattern_Validation() : mixed
Return values
mixed

test_Successful_Validation()

public test_Successful_Validation() : mixed
Return values
mixed

test_Type_Validation()

public test_Type_Validation() : mixed
Return values
mixed

test_Value()

public test_Value() : mixed
Return values
mixed

addMockSubscriber()

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

getData()

protected getData() : 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