Documentation

DeviceTest extends TestCase
in package

FinalYes

Table of Contents

Properties

$cache  : CacheInterface|MockInterface
$client  : ClientInterface|MockInterface
$device  : Device
$logger  : LoggerInterface|MockInterface

Methods

setupDeviceDescription()  : void
testGetIp1()  : void
testGetModel1()  : void
testGetModel2()  : void
Ensure an empty model number returns our default "UNKNOWN" string.
testGetModel3()  : void
Ensure a missing model number tag returns our default "UNKNOWN" string.
testGetName1()  : void
testGetRoom1()  : void
testGetUuid1()  : void
testLookupDeviceDescription1()  : void
Ensure that the XML is read from cache and not requested if available.
setUp()  : void
tearDown()  : void

Properties

$cache

private CacheInterface|MockInterface $cache

$client

private ClientInterface|MockInterface $client

$logger

private LoggerInterface|MockInterface $logger

Methods

setupDeviceDescription()

public setupDeviceDescription() : void

testGetModel2()

Ensure an empty model number returns our default "UNKNOWN" string.

public testGetModel2() : void

testGetModel3()

Ensure a missing model number tag returns our default "UNKNOWN" string.

public testGetModel3() : void

testLookupDeviceDescription1()

Ensure that the XML is read from cache and not requested if available.

public testLookupDeviceDescription1() : void
On this page

Search results