Documentation

AgentTest extends CloudMonitoringTestCase
in package

Table of Contents

AGENT_ID  = '00-agent.example.com'
ANNOTATION_FILE  = 'mockFile'
ANNOTATION_PATH  = 'mockPath'
COLLECTION_CLASS  = 'OpenCloud\Common\Collection\ResourceIterator'
CONNECTION_ID  = 'cntl4qsIbA'
ENTITY_ID  = 'en5hw56rAh'
RESPONSE_CLASS  = 'Guzzle\Http\Message\Response'
$client  : mixed
$currentMockSubscriber  : mixed
$entity  : 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
testCollection()  : mixed
testCreateFailsWithNoParams()  : mixed
testGet()  : mixed
testGetConnection()  : mixed
testGetConnectionFailsWithoutId()  : mixed
testGetConnections()  : mixed
testGetConnectionsFailsWithoutId()  : mixed
testGettingHostReturnsInstance()  : mixed
testResourceClass()  : mixed
testUpdateFailsWithNoParams()  : mixed
testUrl()  : mixed
addMockSubscriber()  : mixed
getTestFilePath()  : mixed
parseDocBlock()  : mixed

Constants

AGENT_ID

public mixed AGENT_ID = '00-agent.example.com'

COLLECTION_CLASS

public mixed COLLECTION_CLASS = 'OpenCloud\Common\Collection\ResourceIterator'

CONNECTION_ID

public mixed CONNECTION_ID = 'cntl4qsIbA'

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

setupObjects()

public setupObjects() : mixed
Return values
mixed

testCollection()

public testCollection() : mixed
Tags
mockFile

Agent_List

Return values
mixed

testCreateFailsWithNoParams()

public testCreateFailsWithNoParams() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\CreateError

Return values
mixed

testGet()

public testGet() : mixed
Tags
mockFile

Agent

Return values
mixed

testGetConnection()

public testGetConnection() : mixed
Tags
mockFile

Agent_Connection

Return values
mixed

testGetConnectionFailsWithoutId()

public testGetConnectionFailsWithoutId() : mixed
Tags
expectedException

OpenCloud\CloudMonitoring\Exception\AgentException

Return values
mixed

testGetConnections()

public testGetConnections() : mixed
Tags
mockFile

Agent_Connection_List

Return values
mixed

testGetConnectionsFailsWithoutId()

public testGetConnectionsFailsWithoutId() : mixed
Tags
expectedException

OpenCloud\CloudMonitoring\Exception\AgentException

Return values
mixed

testGettingHostReturnsInstance()

public testGettingHostReturnsInstance() : mixed
Return values
mixed

testResourceClass()

public testResourceClass() : mixed
Return values
mixed

testUpdateFailsWithNoParams()

public testUpdateFailsWithNoParams() : mixed
Tags
expectedException

OpenCloud\Common\Exceptions\UpdateError

Return values
mixed

testUrl()

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