PHP Class CloudConvert\tests\ApiTest

Author: Josias Montag ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: cloudconvert/cloudconvert-php

Public Methods

Method Description
testIfApiTemporaryUnavailableExceptionIsThrown ( ) Test if API error 503 throws a CloudConvert\Exceptions\ApiTemporaryUnavailableException with correct retryAfter value
testIfProcessCreationWithInvalidFormatThrowsTheRightException ( ) Test if Process creation with invalid format throws a CloudConvert\Exceptions\ApiException
testIfProcessCreationWorks ( ) Test if Process creation works
testIfRequestWithAuthenticationWorks ( ) Test if request without authentication works
testIfRequestWithoutAuthenticationWorks ( ) Test if request without authentication works

Protected Methods

Method Description
getPrivateMethod ( $name ) Get private and protected method to unit test it
getPrivateProperty ( $name )
setUp ( ) Define id to create object

Method Details

getPrivateMethod() protected static method

Get private and protected method to unit test it
protected static getPrivateMethod ( $name )

getPrivateProperty() protected static method

protected static getPrivateProperty ( $name )

setUp() protected method

Define id to create object
protected setUp ( )

testIfApiTemporaryUnavailableExceptionIsThrown() public method

Test if API error 503 throws a CloudConvert\Exceptions\ApiTemporaryUnavailableException with correct retryAfter value

testIfProcessCreationWithInvalidFormatThrowsTheRightException() public method

Test if Process creation with invalid format throws a CloudConvert\Exceptions\ApiException

testIfProcessCreationWorks() public method

Test if Process creation works

testIfRequestWithAuthenticationWorks() public method

Test if request without authentication works

testIfRequestWithoutAuthenticationWorks() public method

Test if request without authentication works