ConnectorTest
extends TestCase
in package
Unit tests for WorldCat backend.
Tags
Table of Contents
- testGetHoldings() : void
- Test "get holdings"
- testGetHoldingsHttpFailure() : void
- Test "get holdings" HTTP failure
- testGetRecord() : void
- Test "get record"
- testGetRecordWithError() : void
- Test "get record" with error
- testSearch() : void
- Test search
- getConnectorWithMockClient() : Connector
- Get a connector with a mock HTTP client.
Methods
testGetHoldings()
Test "get holdings"
public
testGetHoldings() : void
Return values
void —testGetHoldingsHttpFailure()
Test "get holdings" HTTP failure
public
testGetHoldingsHttpFailure() : void
Return values
void —testGetRecord()
Test "get record"
public
testGetRecord() : void
Return values
void —testGetRecordWithError()
Test "get record" with error
public
testGetRecordWithError() : void
Return values
void —testSearch()
Test search
public
testSearch() : void
Return values
void —getConnectorWithMockClient()
Get a connector with a mock HTTP client.
protected
getConnectorWithMockClient(string $expectedUri[, string $body = '<foo>bar</foo>' ]) : Connector
Parameters
- $expectedUri : string
-
URI expected by client.
- $body : string = '<foo>bar</foo>'
-
Response body returned by client.