\Heidelpay\Tests\PhpPaymentApi\Unit\AdapterCurlAdapterTest

Unit test for the curl adapter

This unit test will cover an error in the connection and an simple post request to the sandbox payment system. Please note stat connection test can false due to network issues and scheduled down times.

Summary

Methods
Properties
Constants
_before()
_after()
sendPostShouldReturnNokResultIfCurlIsNotLoaded()
sendPostShouldReturnErrorCodeIfCurlInfoHttpCodeIsSet()
hostNotFound()
simplePost()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$curlAdapter
N/A

Properties

Methods

_before()

_before() 

_after()

_after() 

sendPostShouldReturnNokResultIfCurlIsNotLoaded()

sendPostShouldReturnNokResultIfCurlIsNotLoaded() 

Verify that an error result is returned if curl extension is not loaded.

sendPostShouldReturnErrorCodeIfCurlInfoHttpCodeIsSet()

sendPostShouldReturnErrorCodeIfCurlInfoHttpCodeIsSet() 

Verify that an error result is returned if curl extension is not loaded.

hostNotFound()

hostNotFound() 

This test will cover the error handling of the curl adapter

simplePost()

simplePost() 

This test will send a simple request,