| Server IP : 172.67.201.108 / Your IP : 216.73.217.74 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mitzvahm/planner/anet_php_sdk/tests/ |
Upload File : |
<?php
require_once 'AuthorizeNet_Test_Config.php';
class AuthorizeNet_SOAP_Test extends PHPUnit_Framework_TestCase
{
public function testSaveSoapDoc ()
{
$filepath = dirname(__FILE__) . "/soap_doc.php";
$client = new AuthorizeNetSOAP;
$this->assertTrue($client->saveSoapDocumentation($filepath) > 1);
unlink($filepath);
}
public function testGetCustomerIds ()
{
$client = new AuthorizeNetSOAP;
$result = $client->GetCustomerProfileIds(
array(
'merchantAuthentication' => array(
'name' => AUTHORIZENET_API_LOGIN_ID,
'transactionKey' => AUTHORIZENET_TRANSACTION_KEY,
),
)
);
$customer_ids = $result->GetCustomerProfileIdsResult->ids->long;
$this->assertTrue(is_array($customer_ids));
}
}