ClickatellTest
extends TestCase
in package
SMS test
Tags
Table of Contents
- $expectedBaseUri : string
- Expected base URL in tests.
- setUp() : void
- Setup method
- testCarriers() : void
- Test carrier list
- testClientException() : void
- Test an exception in the mail client
- testFailureResponse() : void
- Test unsuccessful query
- testSuccessResponse() : void
- Test successful query
- testUnexpectedResponse() : void
- Test unexpected response
- testUnknownException() : void
- Test unknown exception message error
- getClickatell() : Clickatell
- Build a test object
- getDefaultConfig() : array<string|int, mixed>
- Get default configuration
- getMockClient() : Client
- Get a mock HTTP client
Properties
$expectedBaseUri
Expected base URL in tests.
protected
string
$expectedBaseUri
= 'https://api.clickatell.com/http/sendmsg?api_id=api_id&user=user&password=password'
Methods
setUp()
Setup method
public
setUp() : void
Return values
void —testCarriers()
Test carrier list
public
testCarriers() : void
Return values
void —testClientException()
Test an exception in the mail client
public
testClientException() : void
Return values
void —testFailureResponse()
Test unsuccessful query
public
testFailureResponse() : void
Return values
void —testSuccessResponse()
Test successful query
public
testSuccessResponse() : void
Return values
void —testUnexpectedResponse()
Test unexpected response
public
testUnexpectedResponse() : void
Return values
void —testUnknownException()
Test unknown exception message error
public
testUnknownException() : void
Return values
void —getClickatell()
Build a test object
protected
getClickatell([Client $client = null ][, array<string|int, mixed> $config = null ]) : Clickatell
Parameters
- $client : Client = null
-
HTTP client (null for default)
- $config : array<string|int, mixed> = null
-
Configuration (null for default)
Return values
Clickatell —getDefaultConfig()
Get default configuration
protected
getDefaultConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMockClient()
Get a mock HTTP client
protected
getMockClient() : Client