CloudConvert\tests\ApiTest::testIfProcessCreationWithInvalidFormatThrowsTheRightException PHP Method

testIfProcessCreationWithInvalidFormatThrowsTheRightException() public method

Test if Process creation with invalid format throws a CloudConvert\Exceptions\ApiException
    public function testIfProcessCreationWithInvalidFormatThrowsTheRightException()
    {
        $this->setExpectedException('CloudConvert\\Exceptions\\ApiException', 'This conversiontype is not supported!', 400);
        $this->setExpectedException('CloudConvert\\Exceptions\\ApiBadRequestException', 'This conversiontype is not supported!', 400);
        $this->api->createProcess(array('inputformat' => 'invalid', 'outputformat' => 'pdf'));
    }