PHP Класс CloudConvert\tests\ApiTest

Автор: Josias Montag ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
getPrivateMethod ( $name ) Get private and protected method to unit test it
getPrivateProperty ( $name )
setUp ( ) Define id to create object

Описание методов

getPrivateMethod() защищенный статический Метод

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

getPrivateProperty() защищенный статический Метод

protected static getPrivateProperty ( $name )

setUp() защищенный Метод

Define id to create object
protected setUp ( )

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