PHP 클래스 Zendesk\API\UnitTests\BasicTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: zendesk/zendesk_api_client_php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$client Zendesk\API\HttpClient
$hostname string
$mockedTransactionsContainer array
$oAuthToken string
$password string
$port string
$scheme string
$subdomain string
$token string

공개 메소드들

메소드 설명
__construct ( $name = null, array $data = [], $dataName = '' )
assertLastRequestIs ( $options ) This checks the last request sent
assertRequestIs ( $options, integer $index ) This checks the response with the given index

보호된 메소드들

메소드 설명
assertEndpointCalled ( $userFunction, $endpoint, string $method = 'GET', $additionalAsserts = [] ) Test for the endpoint using the given method and endpoint
mockApiResponses ( array $responses = [] ) This will mock the next responses sent via guzzle
setUp ( ) Sets up the fixture, for example, open a network connection.

메소드 상세

__construct() 공개 메소드

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array

assertEndpointCalled() 보호된 메소드

Test for the endpoint using the given method and endpoint
protected assertEndpointCalled ( $userFunction, $endpoint, string $method = 'GET', $additionalAsserts = [] )
$userFunction
$endpoint - An array containing [request method, endpoint path]
$method string

assertLastRequestIs() 공개 메소드

This checks the last request sent
public assertLastRequestIs ( $options )
$options

assertRequestIs() 공개 메소드

This checks the response with the given index
public assertRequestIs ( $options, integer $index )
$options
$index integer

mockApiResponses() 보호된 메소드

This will mock the next responses sent via guzzle
protected mockApiResponses ( array $responses = [] )
$responses array An array of GuzzleHttp\Psr7\Response objects

setUp() 보호된 메소드

This method is called before a test is executed.
protected setUp ( )

프로퍼티 상세

$client 보호되어 있는 프로퍼티

protected HttpClient,Zendesk\API $client
리턴 Zendesk\API\HttpClient

$hostname 보호되어 있는 프로퍼티

protected string $hostname
리턴 string

$mockedTransactionsContainer 보호되어 있는 프로퍼티

protected array $mockedTransactionsContainer
리턴 array

$oAuthToken 보호되어 있는 프로퍼티

protected string $oAuthToken
리턴 string

$password 보호되어 있는 프로퍼티

protected string $password
리턴 string

$port 보호되어 있는 프로퍼티

protected string $port
리턴 string

$scheme 보호되어 있는 프로퍼티

protected string $scheme
리턴 string

$subdomain 보호되어 있는 프로퍼티

protected string $subdomain
리턴 string

$token 보호되어 있는 프로퍼티

protected string $token
리턴 string