PHP Class CloudConvert\tests\ApiTest

Author: Josias Montag ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: cloudconvert/cloudconvert-php

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

getPrivateProperty() protected static méthode

protected static getPrivateProperty ( $name )

setUp() protected méthode

Define id to create object
protected setUp ( )

testIfApiTemporaryUnavailableExceptionIsThrown() public méthode

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

testIfProcessCreationWithInvalidFormatThrowsTheRightException() public méthode

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

testIfProcessCreationWorks() public méthode

Test if Process creation works

testIfRequestWithAuthenticationWorks() public méthode

Test if request without authentication works

testIfRequestWithoutAuthenticationWorks() public méthode

Test if request without authentication works