Removed Deprecated Getter and Setters

- Removed Deprecated Getter Setters from all Model Classes
- All Camelcase getters and setters are removed. Please use first letter uppercase syntax
- E.g. instead of using get_notify_url(), use getNotifyUrl() instead
This commit is contained in:
japatel
2015-01-08 22:23:58 -06:00
parent ed2a4fd41e
commit b011d17cde
150 changed files with 47 additions and 10994 deletions

View File

@@ -65,44 +65,4 @@ class AddressTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPhone(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Address $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCountry_code(), "TestSample");
$this->assertEquals($obj->getPostal_code(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Address $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Country_code
$obj->setCountryCode(null);
$this->assertNull($obj->getCountry_code());
$this->assertNull($obj->getCountryCode());
$this->assertSame($obj->getCountryCode(), $obj->getCountry_code());
$obj->setCountry_code("TestSample");
$this->assertEquals($obj->getCountry_code(), "TestSample");
// Check for Postal_code
$obj->setPostalCode(null);
$this->assertNull($obj->getPostal_code());
$this->assertNull($obj->getPostalCode());
$this->assertSame($obj->getPostalCode(), $obj->getPostal_code());
$obj->setPostal_code("TestSample");
$this->assertEquals($obj->getPostal_code(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,26 +55,4 @@ class AgreementStateDescriptorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param AgreementStateDescriptor $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param AgreementStateDescriptor $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -81,81 +81,6 @@ class AgreementTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Agreement $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getStart_date(), "TestSample");
$this->assertEquals($obj->getShipping_address(), AddressTest::getObject());
$this->assertEquals($obj->getOverride_merchant_preferences(), MerchantPreferencesTest::getObject());
$this->assertEquals($obj->getOverride_charge_models(), OverrideChargeModelTest::getObject());
$this->assertEquals($obj->getCreate_time(), "TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Agreement $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Start_date
$obj->setStartDate(null);
$this->assertNull($obj->getStart_date());
$this->assertNull($obj->getStartDate());
$this->assertSame($obj->getStartDate(), $obj->getStart_date());
$obj->setStart_date("TestSample");
$this->assertEquals($obj->getStart_date(), "TestSample");
// Check for Shipping_address
$obj->setShippingAddress(null);
$this->assertNull($obj->getShipping_address());
$this->assertNull($obj->getShippingAddress());
$this->assertSame($obj->getShippingAddress(), $obj->getShipping_address());
$obj->setShipping_address(AddressTest::getObject());
$this->assertEquals($obj->getShipping_address(), AddressTest::getObject());
// Check for Override_merchant_preferences
$obj->setOverrideMerchantPreferences(null);
$this->assertNull($obj->getOverride_merchant_preferences());
$this->assertNull($obj->getOverrideMerchantPreferences());
$this->assertSame($obj->getOverrideMerchantPreferences(), $obj->getOverride_merchant_preferences());
$obj->setOverride_merchant_preferences(MerchantPreferencesTest::getObject());
$this->assertEquals($obj->getOverride_merchant_preferences(), MerchantPreferencesTest::getObject());
// Check for Override_charge_models
$obj->setOverrideChargeModels(null);
$this->assertNull($obj->getOverride_charge_models());
$this->assertNull($obj->getOverrideChargeModels());
$this->assertSame($obj->getOverrideChargeModels(), $obj->getOverride_charge_models());
$obj->setOverride_charge_models(OverrideChargeModelTest::getObject());
$this->assertEquals($obj->getOverride_charge_models(), OverrideChargeModelTest::getObject());
// Check for Create_time
$obj->setCreateTime(null);
$this->assertNull($obj->getCreate_time());
$this->assertNull($obj->getCreateTime());
$this->assertSame($obj->getCreateTime(), $obj->getCreate_time());
$obj->setCreate_time("TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
// Check for Update_time
$obj->setUpdateTime(null);
$this->assertNull($obj->getUpdate_time());
$this->assertNull($obj->getUpdateTime());
$this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time());
$obj->setUpdate_time("TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param Agreement $obj

View File

@@ -71,98 +71,4 @@ class AgreementTransactionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTimeZone(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransaction $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTransaction_id(), "TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
$this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getPayer_email(), "TestSample");
$this->assertEquals($obj->getPayer_name(), "TestSample");
$this->assertEquals($obj->getTime_updated(), "TestSample");
$this->assertEquals($obj->getTime_zone(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransaction $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Transaction_id
$obj->setTransactionId(null);
$this->assertNull($obj->getTransaction_id());
$this->assertNull($obj->getTransactionId());
$this->assertSame($obj->getTransactionId(), $obj->getTransaction_id());
$obj->setTransaction_id("TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
// Check for Transaction_type
$obj->setTransactionType(null);
$this->assertNull($obj->getTransaction_type());
$this->assertNull($obj->getTransactionType());
$this->assertSame($obj->getTransactionType(), $obj->getTransaction_type());
$obj->setTransaction_type("TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
// Check for Fee_amount
$obj->setFeeAmount(null);
$this->assertNull($obj->getFee_amount());
$this->assertNull($obj->getFeeAmount());
$this->assertSame($obj->getFeeAmount(), $obj->getFee_amount());
$obj->setFee_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject());
// Check for Net_amount
$obj->setNetAmount(null);
$this->assertNull($obj->getNet_amount());
$this->assertNull($obj->getNetAmount());
$this->assertSame($obj->getNetAmount(), $obj->getNet_amount());
$obj->setNet_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject());
// Check for Payer_email
$obj->setPayerEmail(null);
$this->assertNull($obj->getPayer_email());
$this->assertNull($obj->getPayerEmail());
$this->assertSame($obj->getPayerEmail(), $obj->getPayer_email());
$obj->setPayer_email("TestSample");
$this->assertEquals($obj->getPayer_email(), "TestSample");
// Check for Payer_name
$obj->setPayerName(null);
$this->assertNull($obj->getPayer_name());
$this->assertNull($obj->getPayerName());
$this->assertSame($obj->getPayerName(), $obj->getPayer_name());
$obj->setPayer_name("TestSample");
$this->assertEquals($obj->getPayer_name(), "TestSample");
// Check for Time_updated
$obj->setTimeUpdated(null);
$this->assertNull($obj->getTime_updated());
$this->assertNull($obj->getTimeUpdated());
$this->assertSame($obj->getTimeUpdated(), $obj->getTime_updated());
$obj->setTime_updated("TestSample");
$this->assertEquals($obj->getTime_updated(), "TestSample");
// Check for Time_zone
$obj->setTimeZone(null);
$this->assertNull($obj->getTime_zone());
$this->assertNull($obj->getTimeZone());
$this->assertSame($obj->getTimeZone(), $obj->getTime_zone());
$obj->setTime_zone("TestSample");
$this->assertEquals($obj->getTime_zone(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -53,35 +53,4 @@ class AgreementTransactionsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAgreementTransactionList(), AgreementTransactionTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransactions $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getAgreement_transaction_list(), AgreementTransactionTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransactions $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Agreement_transaction_list
$obj->setAgreementTransactionList(null);
$this->assertNull($obj->getAgreement_transaction_list());
$this->assertNull($obj->getAgreementTransactionList());
$this->assertSame($obj->getAgreementTransactionList(), $obj->getAgreement_transaction_list());
$obj->setAgreement_transaction_list(AgreementTransactionTest::getObject());
$this->assertEquals($obj->getAgreement_transaction_list(), AgreementTransactionTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -102,216 +102,6 @@ class BankAccountTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param BankAccount $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getAccount_number(), "TestSample");
$this->assertEquals($obj->getAccount_number_type(), "TestSample");
$this->assertEquals($obj->getRouting_number(), "TestSample");
$this->assertEquals($obj->getAccount_type(), "TestSample");
$this->assertEquals($obj->getAccount_name(), "TestSample");
$this->assertEquals($obj->getCheck_type(), "TestSample");
$this->assertEquals($obj->getAuth_type(), "TestSample");
$this->assertEquals($obj->getAuth_capture_timestamp(), "TestSample");
$this->assertEquals($obj->getBank_name(), "TestSample");
$this->assertEquals($obj->getCountry_code(), "TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBirth_date(), "TestSample");
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
$this->assertEquals($obj->getConfirmation_status(), "TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
$this->assertEquals($obj->getMerchant_id(), "TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BankAccount $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Account_number
$obj->setAccountNumber(null);
$this->assertNull($obj->getAccount_number());
$this->assertNull($obj->getAccountNumber());
$this->assertSame($obj->getAccountNumber(), $obj->getAccount_number());
$obj->setAccount_number("TestSample");
$this->assertEquals($obj->getAccount_number(), "TestSample");
// Check for Account_number_type
$obj->setAccountNumberType(null);
$this->assertNull($obj->getAccount_number_type());
$this->assertNull($obj->getAccountNumberType());
$this->assertSame($obj->getAccountNumberType(), $obj->getAccount_number_type());
$obj->setAccount_number_type("TestSample");
$this->assertEquals($obj->getAccount_number_type(), "TestSample");
// Check for Routing_number
$obj->setRoutingNumber(null);
$this->assertNull($obj->getRouting_number());
$this->assertNull($obj->getRoutingNumber());
$this->assertSame($obj->getRoutingNumber(), $obj->getRouting_number());
$obj->setRouting_number("TestSample");
$this->assertEquals($obj->getRouting_number(), "TestSample");
// Check for Account_type
$obj->setAccountType(null);
$this->assertNull($obj->getAccount_type());
$this->assertNull($obj->getAccountType());
$this->assertSame($obj->getAccountType(), $obj->getAccount_type());
$obj->setAccount_type("TestSample");
$this->assertEquals($obj->getAccount_type(), "TestSample");
// Check for Account_name
$obj->setAccountName(null);
$this->assertNull($obj->getAccount_name());
$this->assertNull($obj->getAccountName());
$this->assertSame($obj->getAccountName(), $obj->getAccount_name());
$obj->setAccount_name("TestSample");
$this->assertEquals($obj->getAccount_name(), "TestSample");
// Check for Check_type
$obj->setCheckType(null);
$this->assertNull($obj->getCheck_type());
$this->assertNull($obj->getCheckType());
$this->assertSame($obj->getCheckType(), $obj->getCheck_type());
$obj->setCheck_type("TestSample");
$this->assertEquals($obj->getCheck_type(), "TestSample");
// Check for Auth_type
$obj->setAuthType(null);
$this->assertNull($obj->getAuth_type());
$this->assertNull($obj->getAuthType());
$this->assertSame($obj->getAuthType(), $obj->getAuth_type());
$obj->setAuth_type("TestSample");
$this->assertEquals($obj->getAuth_type(), "TestSample");
// Check for Auth_capture_timestamp
$obj->setAuthCaptureTimestamp(null);
$this->assertNull($obj->getAuth_capture_timestamp());
$this->assertNull($obj->getAuthCaptureTimestamp());
$this->assertSame($obj->getAuthCaptureTimestamp(), $obj->getAuth_capture_timestamp());
$obj->setAuth_capture_timestamp("TestSample");
$this->assertEquals($obj->getAuth_capture_timestamp(), "TestSample");
// Check for Bank_name
$obj->setBankName(null);
$this->assertNull($obj->getBank_name());
$this->assertNull($obj->getBankName());
$this->assertSame($obj->getBankName(), $obj->getBank_name());
$obj->setBank_name("TestSample");
$this->assertEquals($obj->getBank_name(), "TestSample");
// Check for Country_code
$obj->setCountryCode(null);
$this->assertNull($obj->getCountry_code());
$this->assertNull($obj->getCountryCode());
$this->assertSame($obj->getCountryCode(), $obj->getCountry_code());
$obj->setCountry_code("TestSample");
$this->assertEquals($obj->getCountry_code(), "TestSample");
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Birth_date
$obj->setBirthDate(null);
$this->assertNull($obj->getBirth_date());
$this->assertNull($obj->getBirthDate());
$this->assertSame($obj->getBirthDate(), $obj->getBirth_date());
$obj->setBirth_date("TestSample");
$this->assertEquals($obj->getBirth_date(), "TestSample");
// Check for Billing_address
$obj->setBillingAddress(null);
$this->assertNull($obj->getBilling_address());
$this->assertNull($obj->getBillingAddress());
$this->assertSame($obj->getBillingAddress(), $obj->getBilling_address());
$obj->setBilling_address(AddressTest::getObject());
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
// Check for Confirmation_status
$obj->setConfirmationStatus(null);
$this->assertNull($obj->getConfirmation_status());
$this->assertNull($obj->getConfirmationStatus());
$this->assertSame($obj->getConfirmationStatus(), $obj->getConfirmation_status());
$obj->setConfirmation_status("TestSample");
$this->assertEquals($obj->getConfirmation_status(), "TestSample");
// Check for Payer_id
$obj->setPayerId(null);
$this->assertNull($obj->getPayer_id());
$this->assertNull($obj->getPayerId());
$this->assertSame($obj->getPayerId(), $obj->getPayer_id());
$obj->setPayer_id("TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
// Check for External_customer_id
$obj->setExternalCustomerId(null);
$this->assertNull($obj->getExternal_customer_id());
$this->assertNull($obj->getExternalCustomerId());
$this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id());
$obj->setExternal_customer_id("TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
// Check for Merchant_id
$obj->setMerchantId(null);
$this->assertNull($obj->getMerchant_id());
$this->assertNull($obj->getMerchantId());
$this->assertSame($obj->getMerchantId(), $obj->getMerchant_id());
$obj->setMerchant_id("TestSample");
$this->assertEquals($obj->getMerchant_id(), "TestSample");
// Check for Create_time
$obj->setCreateTime(null);
$this->assertNull($obj->getCreate_time());
$this->assertNull($obj->getCreateTime());
$this->assertSame($obj->getCreateTime(), $obj->getCreate_time());
$obj->setCreate_time("TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
// Check for Update_time
$obj->setUpdateTime(null);
$this->assertNull($obj->getUpdate_time());
$this->assertNull($obj->getUpdateTime());
$this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time());
$obj->setUpdate_time("TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
// Check for Valid_until
$obj->setValidUntil(null);
$this->assertNull($obj->getValid_until());
$this->assertNull($obj->getValidUntil());
$this->assertSame($obj->getValidUntil(), $obj->getValid_until());
$obj->setValid_until("TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param BankAccount $obj

View File

@@ -57,44 +57,4 @@ class BankAccountsListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getNextId(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BankAccountsList $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getBank_accounts(), BankAccountTest::getObject());
$this->assertEquals($obj->getNext_id(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BankAccountsList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Bank_accounts
$obj->setBankAccounts(null);
$this->assertNull($obj->getBank_accounts());
$this->assertNull($obj->getBankAccounts());
$this->assertSame($obj->getBankAccounts(), $obj->getBank_accounts());
$obj->setBank_accounts(BankAccountTest::getObject());
$this->assertEquals($obj->getBank_accounts(), BankAccountTest::getObject());
// Check for Next_id
$obj->setNextId(null);
$this->assertNull($obj->getNext_id());
$this->assertNull($obj->getNextId());
$this->assertSame($obj->getNextId(), $obj->getNext_id());
$obj->setNext_id("TestSample");
$this->assertEquals($obj->getNext_id(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,53 +57,4 @@ class BankTokenTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getMandateReferenceNumber(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BankToken $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getBank_id(), "TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
$this->assertEquals($obj->getMandate_reference_number(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BankToken $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Bank_id
$obj->setBankId(null);
$this->assertNull($obj->getBank_id());
$this->assertNull($obj->getBankId());
$this->assertSame($obj->getBankId(), $obj->getBank_id());
$obj->setBank_id("TestSample");
$this->assertEquals($obj->getBank_id(), "TestSample");
// Check for External_customer_id
$obj->setExternalCustomerId(null);
$this->assertNull($obj->getExternal_customer_id());
$this->assertNull($obj->getExternalCustomerId());
$this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id());
$obj->setExternal_customer_id("TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
// Check for Mandate_reference_number
$obj->setMandateReferenceNumber(null);
$this->assertNull($obj->getMandate_reference_number());
$this->assertNull($obj->getMandateReferenceNumber());
$this->assertSame($obj->getMandateReferenceNumber(), $obj->getMandate_reference_number());
$obj->setMandate_reference_number("TestSample");
$this->assertEquals($obj->getMandate_reference_number(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -69,71 +69,4 @@ class BillingInfoTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPhone(), PhoneTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param BillingInfo $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
$this->assertEquals($obj->getAdditional_info(), "TestSample");
$this->assertEquals($obj->getNotification_channel(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param BillingInfo $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Business_name
$obj->setBusinessName(null);
$this->assertNull($obj->getBusiness_name());
$this->assertNull($obj->getBusinessName());
$this->assertSame($obj->getBusinessName(), $obj->getBusiness_name());
$obj->setBusiness_name("TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
// Check for Additional_info
$obj->setAdditionalInfo(null);
$this->assertNull($obj->getAdditional_info());
$this->assertNull($obj->getAdditionalInfo());
$this->assertSame($obj->getAdditionalInfo(), $obj->getAdditional_info());
$obj->setAdditional_info("TestSample");
$this->assertEquals($obj->getAdditional_info(), "TestSample");
// Check for Notification_channel
$obj->setNotificationChannel(null);
$this->assertNull($obj->getNotification_channel());
$this->assertNull($obj->getNotificationChannel());
$this->assertSame($obj->getNotificationChannel(), $obj->getNotification_channel());
$obj->setNotification_channel("TestSample");
$this->assertEquals($obj->getNotification_channel(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,44 +59,4 @@ class CancelNotificationTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getSendToPayer(), true);
}
/**
* @depends testSerializationDeserialization
* @param CancelNotification $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getSend_to_merchant(), true);
$this->assertEquals($obj->getSend_to_payer(), true);
}
/**
* @depends testSerializationDeserialization
* @param CancelNotification $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Send_to_merchant
$obj->setSendToMerchant(null);
$this->assertNull($obj->getSend_to_merchant());
$this->assertNull($obj->getSendToMerchant());
$this->assertSame($obj->getSendToMerchant(), $obj->getSend_to_merchant());
$obj->setSend_to_merchant(true);
$this->assertEquals($obj->getSend_to_merchant(), true);
// Check for Send_to_payer
$obj->setSendToPayer(null);
$this->assertNull($obj->getSend_to_payer());
$this->assertNull($obj->getSendToPayer());
$this->assertSame($obj->getSendToPayer(), $obj->getSend_to_payer());
$obj->setSend_to_payer(true);
$this->assertEquals($obj->getSend_to_payer(), true);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,26 +57,4 @@ class ChargeModelTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param ChargeModel $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param ChargeModel $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -56,27 +56,5 @@ class CostTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPercent(), "12.34");
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Cost $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Cost $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -53,26 +53,4 @@ class CreateProfileResponseTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getId(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param CreateProfileResponse $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param CreateProfileResponse $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,44 +57,4 @@ class CreditCardListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getNextId(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param CreditCardList $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCredit_cards(), CreditCardTest::getObject());
$this->assertEquals($obj->getNext_id(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param CreditCardList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Credit_cards
$obj->setCreditCards(null);
$this->assertNull($obj->getCredit_cards());
$this->assertNull($obj->getCreditCards());
$this->assertSame($obj->getCreditCards(), $obj->getCredit_cards());
$obj->setCredit_cards(CreditCardTest::getObject());
$this->assertEquals($obj->getCredit_cards(), CreditCardTest::getObject());
// Check for Next_id
$obj->setNextId(null);
$this->assertNull($obj->getNext_id());
$this->assertNull($obj->getNextId());
$this->assertSame($obj->getNextId(), $obj->getNext_id());
$obj->setNext_id("TestSample");
$this->assertEquals($obj->getNext_id(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -84,108 +84,6 @@ class CreditCardTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param CreditCard $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getExpire_month(), 123);
$this->assertEquals($obj->getExpire_year(), 123);
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param CreditCard $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Expire_month
$obj->setExpireMonth(null);
$this->assertNull($obj->getExpire_month());
$this->assertNull($obj->getExpireMonth());
$this->assertSame($obj->getExpireMonth(), $obj->getExpire_month());
$obj->setExpire_month(123);
$this->assertEquals($obj->getExpire_month(), 123);
// Check for Expire_year
$obj->setExpireYear(null);
$this->assertNull($obj->getExpire_year());
$this->assertNull($obj->getExpireYear());
$this->assertSame($obj->getExpireYear(), $obj->getExpire_year());
$obj->setExpire_year(123);
$this->assertEquals($obj->getExpire_year(), 123);
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Billing_address
$obj->setBillingAddress(null);
$this->assertNull($obj->getBilling_address());
$this->assertNull($obj->getBillingAddress());
$this->assertSame($obj->getBillingAddress(), $obj->getBilling_address());
$obj->setBilling_address(AddressTest::getObject());
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
// Check for External_customer_id
$obj->setExternalCustomerId(null);
$this->assertNull($obj->getExternal_customer_id());
$this->assertNull($obj->getExternalCustomerId());
$this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id());
$obj->setExternal_customer_id("TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
// Check for Valid_until
$obj->setValidUntil(null);
$this->assertNull($obj->getValid_until());
$this->assertNull($obj->getValidUntil());
$this->assertSame($obj->getValidUntil(), $obj->getValid_until());
$obj->setValid_until("TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
// Check for Create_time
$obj->setCreateTime(null);
$this->assertNull($obj->getCreate_time());
$this->assertNull($obj->getCreateTime());
$this->assertSame($obj->getCreateTime(), $obj->getCreate_time());
$obj->setCreate_time("TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
// Check for Update_time
$obj->setUpdateTime(null);
$this->assertNull($obj->getUpdate_time());
$this->assertNull($obj->getUpdateTime());
$this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time());
$obj->setUpdate_time("TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param CreditCard $obj

View File

@@ -63,62 +63,4 @@ class CreditCardTokenTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getExpireYear(), 123);
}
/**
* @depends testSerializationDeserialization
* @param CreditCardToken $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCredit_card_id(), "TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
$this->assertEquals($obj->getExpire_month(), 123);
$this->assertEquals($obj->getExpire_year(), 123);
}
/**
* @depends testSerializationDeserialization
* @param CreditCardToken $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Credit_card_id
$obj->setCreditCardId(null);
$this->assertNull($obj->getCredit_card_id());
$this->assertNull($obj->getCreditCardId());
$this->assertSame($obj->getCreditCardId(), $obj->getCredit_card_id());
$obj->setCredit_card_id("TestSample");
$this->assertEquals($obj->getCredit_card_id(), "TestSample");
// Check for Payer_id
$obj->setPayerId(null);
$this->assertNull($obj->getPayer_id());
$this->assertNull($obj->getPayerId());
$this->assertSame($obj->getPayerId(), $obj->getPayer_id());
$obj->setPayer_id("TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
// Check for Expire_month
$obj->setExpireMonth(null);
$this->assertNull($obj->getExpire_month());
$this->assertNull($obj->getExpireMonth());
$this->assertSame($obj->getExpireMonth(), $obj->getExpire_month());
$obj->setExpire_month(123);
$this->assertEquals($obj->getExpire_month(), 123);
// Check for Expire_year
$obj->setExpireYear(null);
$this->assertNull($obj->getExpire_year());
$this->assertNull($obj->getExpireYear());
$this->assertSame($obj->getExpireYear(), $obj->getExpire_year());
$obj->setExpire_year(123);
$this->assertEquals($obj->getExpire_year(), 123);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,26 +57,4 @@ class CreditTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTerms(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Credit $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Credit $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,26 +57,4 @@ class CurrencyTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getValue(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Currency $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Currency $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,26 +55,4 @@ class CustomAmountTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param CustomAmount $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param CustomAmount $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,26 +55,4 @@ class ErrorDetailsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getIssue(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param ErrorDetails $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param ErrorDetails $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,44 +63,4 @@ class ErrorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Error $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getDebug_id(), "TestSample");
$this->assertEquals($obj->getInformation_link(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Error $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Debug_id
$obj->setDebugId(null);
$this->assertNull($obj->getDebug_id());
$this->assertNull($obj->getDebugId());
$this->assertSame($obj->getDebugId(), $obj->getDebug_id());
$obj->setDebug_id("TestSample");
$this->assertEquals($obj->getDebug_id(), "TestSample");
// Check for Information_link
$obj->setInformationLink(null);
$this->assertNull($obj->getInformation_link());
$this->assertNull($obj->getInformationLink());
$this->assertSame($obj->getInformationLink(), $obj->getInformation_link());
$obj->setInformation_link("TestSample");
$this->assertEquals($obj->getInformation_link(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -53,35 +53,4 @@ class ExtendedBankAccountTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getMandateReferenceNumber(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param ExtendedBankAccount $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getMandate_reference_number(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param ExtendedBankAccount $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Mandate_reference_number
$obj->setMandateReferenceNumber(null);
$this->assertNull($obj->getMandate_reference_number());
$this->assertNull($obj->getMandateReferenceNumber());
$this->assertSame($obj->getMandateReferenceNumber(), $obj->getMandate_reference_number());
$obj->setMandate_reference_number("TestSample");
$this->assertEquals($obj->getMandate_reference_number(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,36 +55,6 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getBankTxnPendingUrl(), "http://www.google.com");
}
/**
* @depends testSerializationDeserialization
* @param FlowConfig $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getLanding_page_type(), "TestSample");
$this->assertEquals($obj->getBank_txn_pending_url(), "http://www.google.com");
}
/**
* @depends testSerializationDeserialization
* @param FlowConfig $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Landing_page_type
$obj->setLandingPageType(null);
$this->assertNull($obj->getLanding_page_type());
$this->assertNull($obj->getLandingPageType());
$this->assertSame($obj->getLandingPageType(), $obj->getLanding_page_type());
$obj->setLanding_page_type("TestSample");
$this->assertEquals($obj->getLanding_page_type(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage BankTxnPendingUrl is not a fully qualified URL
@@ -95,11 +65,4 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase
$obj->setBankTxnPendingUrl(null);
}
public function testUrlValidationForBankTxnPendingUrlDeprecated()
{
$obj = new FlowConfig();
$obj->setBank_txn_pending_url(null);
$this->assertNull($obj->getBank_txn_pending_url());
}
}

View File

@@ -65,80 +65,5 @@ class FundingInstrumentTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getCredit(), CreditTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param FundingInstrument $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCredit_card(), CreditCardTest::getObject());
$this->assertEquals($obj->getCredit_card_token(), CreditCardTokenTest::getObject());
$this->assertEquals($obj->getPayment_card(), PaymentCardTest::getObject());
$this->assertEquals($obj->getPayment_card_token(), PaymentCardTokenTest::getObject());
$this->assertEquals($obj->getBank_account(), ExtendedBankAccountTest::getObject());
$this->assertEquals($obj->getBank_account_token(), BankTokenTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param FundingInstrument $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Credit_card
$obj->setCreditCard(null);
$this->assertNull($obj->getCredit_card());
$this->assertNull($obj->getCreditCard());
$this->assertSame($obj->getCreditCard(), $obj->getCredit_card());
$obj->setCredit_card(CreditCardTest::getObject());
$this->assertEquals($obj->getCredit_card(), CreditCardTest::getObject());
// Check for Credit_card_token
$obj->setCreditCardToken(null);
$this->assertNull($obj->getCredit_card_token());
$this->assertNull($obj->getCreditCardToken());
$this->assertSame($obj->getCreditCardToken(), $obj->getCredit_card_token());
$obj->setCredit_card_token(CreditCardTokenTest::getObject());
$this->assertEquals($obj->getCredit_card_token(), CreditCardTokenTest::getObject());
// Check for Payment_card
$obj->setPaymentCard(null);
$this->assertNull($obj->getPayment_card());
$this->assertNull($obj->getPaymentCard());
$this->assertSame($obj->getPaymentCard(), $obj->getPayment_card());
$obj->setPayment_card(PaymentCardTest::getObject());
$this->assertEquals($obj->getPayment_card(), PaymentCardTest::getObject());
// Check for Payment_card_token
$obj->setPaymentCardToken(null);
$this->assertNull($obj->getPayment_card_token());
$this->assertNull($obj->getPaymentCardToken());
$this->assertSame($obj->getPaymentCardToken(), $obj->getPayment_card_token());
$obj->setPayment_card_token(PaymentCardTokenTest::getObject());
$this->assertEquals($obj->getPayment_card_token(), PaymentCardTokenTest::getObject());
// Check for Bank_account
$obj->setBankAccount(null);
$this->assertNull($obj->getBank_account());
$this->assertNull($obj->getBankAccount());
$this->assertSame($obj->getBankAccount(), $obj->getBank_account());
$obj->setBank_account(ExtendedBankAccountTest::getObject());
$this->assertEquals($obj->getBank_account(), ExtendedBankAccountTest::getObject());
// Check for Bank_account_token
$obj->setBankAccountToken(null);
$this->assertNull($obj->getBank_account_token());
$this->assertNull($obj->getBankAccountToken());
$this->assertSame($obj->getBankAccountToken(), $obj->getBank_account_token());
$obj->setBank_account_token(BankTokenTest::getObject());
$this->assertEquals($obj->getBank_account_token(), BankTokenTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,26 +63,4 @@ class HyperSchemaTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getMediaType(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param HyperSchema $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param HyperSchema $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -53,26 +53,4 @@ class ImageTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getImage(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Image $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Image $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,53 +57,4 @@ class InputFieldsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAddressOverride(), 123);
}
/**
* @depends testSerializationDeserialization
* @param InputFields $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getAllow_note(), true);
$this->assertEquals($obj->getNo_shipping(), 123);
$this->assertEquals($obj->getAddress_override(), 123);
}
/**
* @depends testSerializationDeserialization
* @param InputFields $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Allow_note
$obj->setAllowNote(null);
$this->assertNull($obj->getAllow_note());
$this->assertNull($obj->getAllowNote());
$this->assertSame($obj->getAllowNote(), $obj->getAllow_note());
$obj->setAllow_note(true);
$this->assertEquals($obj->getAllow_note(), true);
// Check for No_shipping
$obj->setNoShipping(null);
$this->assertNull($obj->getNo_shipping());
$this->assertNull($obj->getNoShipping());
$this->assertSame($obj->getNoShipping(), $obj->getNo_shipping());
$obj->setNo_shipping(123);
$this->assertEquals($obj->getNo_shipping(), 123);
// Check for Address_override
$obj->setAddressOverride(null);
$this->assertNull($obj->getAddress_override());
$this->assertNull($obj->getAddressOverride());
$this->assertSame($obj->getAddressOverride(), $obj->getAddress_override());
$obj->setAddress_override(123);
$this->assertEquals($obj->getAddress_override(), 123);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -65,44 +65,4 @@ class InvoiceAddressTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPhone(), PhoneTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param InvoiceAddress $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCountry_code(), "TestSample");
$this->assertEquals($obj->getPostal_code(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param InvoiceAddress $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Country_code
$obj->setCountryCode(null);
$this->assertNull($obj->getCountry_code());
$this->assertNull($obj->getCountryCode());
$this->assertSame($obj->getCountryCode(), $obj->getCountry_code());
$obj->setCountry_code("TestSample");
$this->assertEquals($obj->getCountry_code(), "TestSample");
// Check for Postal_code
$obj->setPostalCode(null);
$this->assertNull($obj->getPostal_code());
$this->assertNull($obj->getPostalCode());
$this->assertSame($obj->getPostalCode(), $obj->getPostal_code());
$obj->setPostal_code("TestSample");
$this->assertEquals($obj->getPostal_code(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -65,35 +65,4 @@ class InvoiceItemTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getDiscount(), CostTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param InvoiceItem $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getUnit_price(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param InvoiceItem $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Unit_price
$obj->setUnitPrice(null);
$this->assertNull($obj->getUnit_price());
$this->assertNull($obj->getUnitPrice());
$this->assertSame($obj->getUnitPrice(), $obj->getUnit_price());
$obj->setUnit_price(CurrencyTest::getObject());
$this->assertEquals($obj->getUnit_price(), CurrencyTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,35 +55,4 @@ class InvoiceSearchResponseTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getInvoices(), InvoiceTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param InvoiceSearchResponse $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTotal_count(), 123);
}
/**
* @depends testSerializationDeserialization
* @param InvoiceSearchResponse $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Total_count
$obj->setTotalCount(null);
$this->assertNull($obj->getTotal_count());
$this->assertNull($obj->getTotalCount());
$this->assertSame($obj->getTotalCount(), $obj->getTotal_count());
$obj->setTotal_count(123);
$this->assertEquals($obj->getTotal_count(), 123);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -103,144 +103,6 @@ class InvoiceTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAdditionalData(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Invoice $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getMerchant_info(), MerchantInfoTest::getObject());
$this->assertEquals($obj->getBilling_info(), BillingInfoTest::getObject());
$this->assertEquals($obj->getShipping_info(), ShippingInfoTest::getObject());
$this->assertEquals($obj->getInvoice_date(), "TestSample");
$this->assertEquals($obj->getPayment_term(), PaymentTermTest::getObject());
$this->assertEquals($obj->getShipping_cost(), ShippingCostTest::getObject());
$this->assertEquals($obj->getTax_calculated_after_discount(), true);
$this->assertEquals($obj->getTax_inclusive(), true);
$this->assertEquals($obj->getMerchant_memo(), "TestSample");
$this->assertEquals($obj->getLogo_url(), "http://www.google.com");
$this->assertEquals($obj->getTotal_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getPayment_details(), PaymentDetailTest::getObject());
$this->assertEquals($obj->getRefund_details(), RefundDetailTest::getObject());
$this->assertEquals($obj->getAdditional_data(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Invoice $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Merchant_info
$obj->setMerchantInfo(null);
$this->assertNull($obj->getMerchant_info());
$this->assertNull($obj->getMerchantInfo());
$this->assertSame($obj->getMerchantInfo(), $obj->getMerchant_info());
$obj->setMerchant_info(MerchantInfoTest::getObject());
$this->assertEquals($obj->getMerchant_info(), MerchantInfoTest::getObject());
// Check for Billing_info
$obj->setBillingInfo(null);
$this->assertNull($obj->getBilling_info());
$this->assertNull($obj->getBillingInfo());
$this->assertSame($obj->getBillingInfo(), $obj->getBilling_info());
$obj->setBilling_info(BillingInfoTest::getObject());
$this->assertEquals($obj->getBilling_info(), BillingInfoTest::getObject());
// Check for Shipping_info
$obj->setShippingInfo(null);
$this->assertNull($obj->getShipping_info());
$this->assertNull($obj->getShippingInfo());
$this->assertSame($obj->getShippingInfo(), $obj->getShipping_info());
$obj->setShipping_info(ShippingInfoTest::getObject());
$this->assertEquals($obj->getShipping_info(), ShippingInfoTest::getObject());
// Check for Invoice_date
$obj->setInvoiceDate(null);
$this->assertNull($obj->getInvoice_date());
$this->assertNull($obj->getInvoiceDate());
$this->assertSame($obj->getInvoiceDate(), $obj->getInvoice_date());
$obj->setInvoice_date("TestSample");
$this->assertEquals($obj->getInvoice_date(), "TestSample");
// Check for Payment_term
$obj->setPaymentTerm(null);
$this->assertNull($obj->getPayment_term());
$this->assertNull($obj->getPaymentTerm());
$this->assertSame($obj->getPaymentTerm(), $obj->getPayment_term());
$obj->setPayment_term(PaymentTermTest::getObject());
$this->assertEquals($obj->getPayment_term(), PaymentTermTest::getObject());
// Check for Shipping_cost
$obj->setShippingCost(null);
$this->assertNull($obj->getShipping_cost());
$this->assertNull($obj->getShippingCost());
$this->assertSame($obj->getShippingCost(), $obj->getShipping_cost());
$obj->setShipping_cost(ShippingCostTest::getObject());
$this->assertEquals($obj->getShipping_cost(), ShippingCostTest::getObject());
// Check for Tax_calculated_after_discount
$obj->setTaxCalculatedAfterDiscount(null);
$this->assertNull($obj->getTax_calculated_after_discount());
$this->assertNull($obj->getTaxCalculatedAfterDiscount());
$this->assertSame($obj->getTaxCalculatedAfterDiscount(), $obj->getTax_calculated_after_discount());
$obj->setTax_calculated_after_discount(true);
$this->assertEquals($obj->getTax_calculated_after_discount(), true);
// Check for Tax_inclusive
$obj->setTaxInclusive(null);
$this->assertNull($obj->getTax_inclusive());
$this->assertNull($obj->getTaxInclusive());
$this->assertSame($obj->getTaxInclusive(), $obj->getTax_inclusive());
$obj->setTax_inclusive(true);
$this->assertEquals($obj->getTax_inclusive(), true);
// Check for Merchant_memo
$obj->setMerchantMemo(null);
$this->assertNull($obj->getMerchant_memo());
$this->assertNull($obj->getMerchantMemo());
$this->assertSame($obj->getMerchantMemo(), $obj->getMerchant_memo());
$obj->setMerchant_memo("TestSample");
$this->assertEquals($obj->getMerchant_memo(), "TestSample");
// Check for Total_amount
$obj->setTotalAmount(null);
$this->assertNull($obj->getTotal_amount());
$this->assertNull($obj->getTotalAmount());
$this->assertSame($obj->getTotalAmount(), $obj->getTotal_amount());
$obj->setTotal_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getTotal_amount(), CurrencyTest::getObject());
// Check for Payment_details
$obj->setPaymentDetails(null);
$this->assertNull($obj->getPayment_details());
$this->assertNull($obj->getPaymentDetails());
$this->assertSame($obj->getPaymentDetails(), $obj->getPayment_details());
$obj->setPayment_details(PaymentDetailTest::getObject());
$this->assertEquals($obj->getPayment_details(), PaymentDetailTest::getObject());
// Check for Refund_details
$obj->setRefundDetails(null);
$this->assertNull($obj->getRefund_details());
$this->assertNull($obj->getRefundDetails());
$this->assertSame($obj->getRefundDetails(), $obj->getRefund_details());
$obj->setRefund_details(RefundDetailTest::getObject());
$this->assertEquals($obj->getRefund_details(), RefundDetailTest::getObject());
// Check for Additional_data
$obj->setAdditionalData(null);
$this->assertNull($obj->getAdditional_data());
$this->assertNull($obj->getAdditionalData());
$this->assertSame($obj->getAdditionalData(), $obj->getAdditional_data());
$obj->setAdditional_data("TestSample");
$this->assertEquals($obj->getAdditional_data(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage LogoUrl is not a fully qualified URL
@@ -251,12 +113,6 @@ class InvoiceTest extends \PHPUnit_Framework_TestCase
$obj->setLogoUrl(null);
}
public function testUrlValidationForLogoUrlDeprecated()
{
$obj = new Invoice();
$obj->setLogo_url(null);
$this->assertNull($obj->getLogo_url());
}
/**
* @dataProvider mockProvider
* @param Invoice $obj

View File

@@ -63,26 +63,4 @@ class LinksTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getSchema(), HyperSchemaTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Links $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Links $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -71,71 +71,4 @@ class MerchantInfoTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAdditionalInfo(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param MerchantInfo $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
$this->assertEquals($obj->getTax_id(), "TestSample");
$this->assertEquals($obj->getAdditional_info(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param MerchantInfo $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Business_name
$obj->setBusinessName(null);
$this->assertNull($obj->getBusiness_name());
$this->assertNull($obj->getBusinessName());
$this->assertSame($obj->getBusinessName(), $obj->getBusiness_name());
$obj->setBusiness_name("TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
// Check for Tax_id
$obj->setTaxId(null);
$this->assertNull($obj->getTax_id());
$this->assertNull($obj->getTaxId());
$this->assertSame($obj->getTaxId(), $obj->getTax_id());
$obj->setTax_id("TestSample");
$this->assertEquals($obj->getTax_id(), "TestSample");
// Check for Additional_info
$obj->setAdditionalInfo(null);
$this->assertNull($obj->getAdditional_info());
$this->assertNull($obj->getAdditionalInfo());
$this->assertSame($obj->getAdditionalInfo(), $obj->getAdditional_info());
$obj->setAdditional_info("TestSample");
$this->assertEquals($obj->getAdditional_info(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -71,83 +71,6 @@ class MerchantPreferencesTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getCharSet(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param MerchantPreferences $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getSetup_fee(), CurrencyTest::getObject());
$this->assertEquals($obj->getCancel_url(), "http://www.google.com");
$this->assertEquals($obj->getReturn_url(), "http://www.google.com");
$this->assertEquals($obj->getNotify_url(), "http://www.google.com");
$this->assertEquals($obj->getMax_fail_attempts(), "TestSample");
$this->assertEquals($obj->getAuto_bill_amount(), "TestSample");
$this->assertEquals($obj->getInitial_fail_amount_action(), "TestSample");
$this->assertEquals($obj->getAccepted_payment_type(), "TestSample");
$this->assertEquals($obj->getChar_set(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param MerchantPreferences $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Setup_fee
$obj->setSetupFee(null);
$this->assertNull($obj->getSetup_fee());
$this->assertNull($obj->getSetupFee());
$this->assertSame($obj->getSetupFee(), $obj->getSetup_fee());
$obj->setSetup_fee(CurrencyTest::getObject());
$this->assertEquals($obj->getSetup_fee(), CurrencyTest::getObject());
// Check for Max_fail_attempts
$obj->setMaxFailAttempts(null);
$this->assertNull($obj->getMax_fail_attempts());
$this->assertNull($obj->getMaxFailAttempts());
$this->assertSame($obj->getMaxFailAttempts(), $obj->getMax_fail_attempts());
$obj->setMax_fail_attempts("TestSample");
$this->assertEquals($obj->getMax_fail_attempts(), "TestSample");
// Check for Auto_bill_amount
$obj->setAutoBillAmount(null);
$this->assertNull($obj->getAuto_bill_amount());
$this->assertNull($obj->getAutoBillAmount());
$this->assertSame($obj->getAutoBillAmount(), $obj->getAuto_bill_amount());
$obj->setAuto_bill_amount("TestSample");
$this->assertEquals($obj->getAuto_bill_amount(), "TestSample");
// Check for Initial_fail_amount_action
$obj->setInitialFailAmountAction(null);
$this->assertNull($obj->getInitial_fail_amount_action());
$this->assertNull($obj->getInitialFailAmountAction());
$this->assertSame($obj->getInitialFailAmountAction(), $obj->getInitial_fail_amount_action());
$obj->setInitial_fail_amount_action("TestSample");
$this->assertEquals($obj->getInitial_fail_amount_action(), "TestSample");
// Check for Accepted_payment_type
$obj->setAcceptedPaymentType(null);
$this->assertNull($obj->getAccepted_payment_type());
$this->assertNull($obj->getAcceptedPaymentType());
$this->assertSame($obj->getAcceptedPaymentType(), $obj->getAccepted_payment_type());
$obj->setAccepted_payment_type("TestSample");
$this->assertEquals($obj->getAccepted_payment_type(), "TestSample");
// Check for Char_set
$obj->setCharSet(null);
$this->assertNull($obj->getChar_set());
$this->assertNull($obj->getCharSet());
$this->assertSame($obj->getCharSet(), $obj->getChar_set());
$obj->setChar_set("TestSample");
$this->assertEquals($obj->getChar_set(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage CancelUrl is not a fully qualified URL
@@ -179,20 +102,20 @@ class MerchantPreferencesTest extends \PHPUnit_Framework_TestCase
public function testUrlValidationForCancelUrlDeprecated()
{
$obj = new MerchantPreferences();
$obj->setCancel_url(null);
$this->assertNull($obj->getCancel_url());
$obj->setCancelUrl(null);
$this->assertNull($obj->getCancelUrl());
}
public function testUrlValidationForReturnUrlDeprecated()
{
$obj = new MerchantPreferences();
$obj->setReturn_url(null);
$this->assertNull($obj->getReturn_url());
$obj->setReturnUrl(null);
$this->assertNull($obj->getReturnUrl());
}
public function testUrlValidationForNotifyUrlDeprecated()
{
$obj = new MerchantPreferences();
$obj->setNotify_url(null);
$this->assertNull($obj->getNotify_url());
$obj->setNotifyUrl(null);
$this->assertNull($obj->getNotifyUrl());
}
}

View File

@@ -71,108 +71,6 @@ class MetadataTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPayerViewUrl(), "http://www.google.com");
}
/**
* @depends testSerializationDeserialization
* @param Metadata $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCreated_date(), "TestSample");
$this->assertEquals($obj->getCreated_by(), "TestSample");
$this->assertEquals($obj->getCancelled_date(), "TestSample");
$this->assertEquals($obj->getCancelled_by(), "TestSample");
$this->assertEquals($obj->getLast_updated_date(), "TestSample");
$this->assertEquals($obj->getLast_updated_by(), "TestSample");
$this->assertEquals($obj->getFirst_sent_date(), "TestSample");
$this->assertEquals($obj->getLast_sent_date(), "TestSample");
$this->assertEquals($obj->getLast_sent_by(), "TestSample");
$this->assertEquals($obj->getPayer_view_url(), "http://www.google.com");
}
/**
* @depends testSerializationDeserialization
* @param Metadata $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Created_date
$obj->setCreatedDate(null);
$this->assertNull($obj->getCreated_date());
$this->assertNull($obj->getCreatedDate());
$this->assertSame($obj->getCreatedDate(), $obj->getCreated_date());
$obj->setCreated_date("TestSample");
$this->assertEquals($obj->getCreated_date(), "TestSample");
// Check for Created_by
$obj->setCreatedBy(null);
$this->assertNull($obj->getCreated_by());
$this->assertNull($obj->getCreatedBy());
$this->assertSame($obj->getCreatedBy(), $obj->getCreated_by());
$obj->setCreated_by("TestSample");
$this->assertEquals($obj->getCreated_by(), "TestSample");
// Check for Cancelled_date
$obj->setCancelledDate(null);
$this->assertNull($obj->getCancelled_date());
$this->assertNull($obj->getCancelledDate());
$this->assertSame($obj->getCancelledDate(), $obj->getCancelled_date());
$obj->setCancelled_date("TestSample");
$this->assertEquals($obj->getCancelled_date(), "TestSample");
// Check for Cancelled_by
$obj->setCancelledBy(null);
$this->assertNull($obj->getCancelled_by());
$this->assertNull($obj->getCancelledBy());
$this->assertSame($obj->getCancelledBy(), $obj->getCancelled_by());
$obj->setCancelled_by("TestSample");
$this->assertEquals($obj->getCancelled_by(), "TestSample");
// Check for Last_updated_date
$obj->setLastUpdatedDate(null);
$this->assertNull($obj->getLast_updated_date());
$this->assertNull($obj->getLastUpdatedDate());
$this->assertSame($obj->getLastUpdatedDate(), $obj->getLast_updated_date());
$obj->setLast_updated_date("TestSample");
$this->assertEquals($obj->getLast_updated_date(), "TestSample");
// Check for Last_updated_by
$obj->setLastUpdatedBy(null);
$this->assertNull($obj->getLast_updated_by());
$this->assertNull($obj->getLastUpdatedBy());
$this->assertSame($obj->getLastUpdatedBy(), $obj->getLast_updated_by());
$obj->setLast_updated_by("TestSample");
$this->assertEquals($obj->getLast_updated_by(), "TestSample");
// Check for First_sent_date
$obj->setFirstSentDate(null);
$this->assertNull($obj->getFirst_sent_date());
$this->assertNull($obj->getFirstSentDate());
$this->assertSame($obj->getFirstSentDate(), $obj->getFirst_sent_date());
$obj->setFirst_sent_date("TestSample");
$this->assertEquals($obj->getFirst_sent_date(), "TestSample");
// Check for Last_sent_date
$obj->setLastSentDate(null);
$this->assertNull($obj->getLast_sent_date());
$this->assertNull($obj->getLastSentDate());
$this->assertSame($obj->getLastSentDate(), $obj->getLast_sent_date());
$obj->setLast_sent_date("TestSample");
$this->assertEquals($obj->getLast_sent_date(), "TestSample");
// Check for Last_sent_by
$obj->setLastSentBy(null);
$this->assertNull($obj->getLast_sent_by());
$this->assertNull($obj->getLastSentBy());
$this->assertSame($obj->getLastSentBy(), $obj->getLast_sent_by());
$obj->setLast_sent_by("TestSample");
$this->assertEquals($obj->getLast_sent_by(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage PayerViewUrl is not a fully qualified URL

View File

@@ -57,35 +57,5 @@ class NotificationTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getSendToMerchant(), true);
}
/**
* @depends testSerializationDeserialization
* @param Notification $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getSend_to_merchant(), true);
}
/**
* @depends testSerializationDeserialization
* @param Notification $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Send_to_merchant
$obj->setSendToMerchant(null);
$this->assertNull($obj->getSend_to_merchant());
$this->assertNull($obj->getSendToMerchant());
$this->assertSame($obj->getSendToMerchant(), $obj->getSend_to_merchant());
$obj->setSend_to_merchant(true);
$this->assertEquals($obj->getSend_to_merchant(), true);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,35 +55,4 @@ class OverrideChargeModelTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param OverrideChargeModel $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCharge_id(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param OverrideChargeModel $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Charge_id
$obj->setChargeId(null);
$this->assertNull($obj->getCharge_id());
$this->assertNull($obj->getChargeId());
$this->assertSame($obj->getChargeId(), $obj->getCharge_id());
$obj->setCharge_id("TestSample");
$this->assertEquals($obj->getCharge_id(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -52,26 +52,4 @@ class PatchRequestTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPatches(), PatchTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PatchRequest $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param PatchRequest $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,26 +59,4 @@ class PatchTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getFrom(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Patch $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Patch $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -77,125 +77,4 @@ class PayerInfoTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayerInfo $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getExternal_remember_me_id(), "TestSample");
$this->assertEquals($obj->getBuyer_account_number(), "TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
$this->assertEquals($obj->getPhone_type(), "TestSample");
$this->assertEquals($obj->getBirth_date(), "TestSample");
$this->assertEquals($obj->getTax_id(), "TestSample");
$this->assertEquals($obj->getTax_id_type(), "TestSample");
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
$this->assertEquals($obj->getShipping_address(), ShippingAddressTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayerInfo $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for External_remember_me_id
$obj->setExternalRememberMeId(null);
$this->assertNull($obj->getExternal_remember_me_id());
$this->assertNull($obj->getExternalRememberMeId());
$this->assertSame($obj->getExternalRememberMeId(), $obj->getExternal_remember_me_id());
$obj->setExternal_remember_me_id("TestSample");
$this->assertEquals($obj->getExternal_remember_me_id(), "TestSample");
// Check for Buyer_account_number
$obj->setBuyerAccountNumber(null);
$this->assertNull($obj->getBuyer_account_number());
$this->assertNull($obj->getBuyerAccountNumber());
$this->assertSame($obj->getBuyerAccountNumber(), $obj->getBuyer_account_number());
$obj->setBuyer_account_number("TestSample");
$this->assertEquals($obj->getBuyer_account_number(), "TestSample");
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Payer_id
$obj->setPayerId(null);
$this->assertNull($obj->getPayer_id());
$this->assertNull($obj->getPayerId());
$this->assertSame($obj->getPayerId(), $obj->getPayer_id());
$obj->setPayer_id("TestSample");
$this->assertEquals($obj->getPayer_id(), "TestSample");
// Check for Phone_type
$obj->setPhoneType(null);
$this->assertNull($obj->getPhone_type());
$this->assertNull($obj->getPhoneType());
$this->assertSame($obj->getPhoneType(), $obj->getPhone_type());
$obj->setPhone_type("TestSample");
$this->assertEquals($obj->getPhone_type(), "TestSample");
// Check for Birth_date
$obj->setBirthDate(null);
$this->assertNull($obj->getBirth_date());
$this->assertNull($obj->getBirthDate());
$this->assertSame($obj->getBirthDate(), $obj->getBirth_date());
$obj->setBirth_date("TestSample");
$this->assertEquals($obj->getBirth_date(), "TestSample");
// Check for Tax_id
$obj->setTaxId(null);
$this->assertNull($obj->getTax_id());
$this->assertNull($obj->getTaxId());
$this->assertSame($obj->getTaxId(), $obj->getTax_id());
$obj->setTax_id("TestSample");
$this->assertEquals($obj->getTax_id(), "TestSample");
// Check for Tax_id_type
$obj->setTaxIdType(null);
$this->assertNull($obj->getTax_id_type());
$this->assertNull($obj->getTaxIdType());
$this->assertSame($obj->getTaxIdType(), $obj->getTax_id_type());
$obj->setTax_id_type("TestSample");
$this->assertEquals($obj->getTax_id_type(), "TestSample");
// Check for Billing_address
$obj->setBillingAddress(null);
$this->assertNull($obj->getBilling_address());
$this->assertNull($obj->getBillingAddress());
$this->assertSame($obj->getBillingAddress(), $obj->getBilling_address());
$obj->setBilling_address(AddressTest::getObject());
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
// Check for Shipping_address
$obj->setShippingAddress(null);
$this->assertNull($obj->getShipping_address());
$this->assertNull($obj->getShippingAddress());
$this->assertSame($obj->getShippingAddress(), $obj->getShipping_address());
$obj->setShipping_address(ShippingAddressTest::getObject());
$this->assertEquals($obj->getShipping_address(), ShippingAddressTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -61,62 +61,4 @@ class PayerTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPayerInfo(), PayerInfoTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Payer $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getPayment_method(), "TestSample");
$this->assertEquals($obj->getFunding_instruments(), FundingInstrumentTest::getObject());
$this->assertEquals($obj->getFunding_option_id(), "TestSample");
$this->assertEquals($obj->getPayer_info(), PayerInfoTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Payer $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Payment_method
$obj->setPaymentMethod(null);
$this->assertNull($obj->getPayment_method());
$this->assertNull($obj->getPaymentMethod());
$this->assertSame($obj->getPaymentMethod(), $obj->getPayment_method());
$obj->setPayment_method("TestSample");
$this->assertEquals($obj->getPayment_method(), "TestSample");
// Check for Funding_instruments
$obj->setFundingInstruments(null);
$this->assertNull($obj->getFunding_instruments());
$this->assertNull($obj->getFundingInstruments());
$this->assertSame($obj->getFundingInstruments(), $obj->getFunding_instruments());
$obj->setFunding_instruments(FundingInstrumentTest::getObject());
$this->assertEquals($obj->getFunding_instruments(), FundingInstrumentTest::getObject());
// Check for Funding_option_id
$obj->setFundingOptionId(null);
$this->assertNull($obj->getFunding_option_id());
$this->assertNull($obj->getFundingOptionId());
$this->assertSame($obj->getFundingOptionId(), $obj->getFunding_option_id());
$obj->setFunding_option_id("TestSample");
$this->assertEquals($obj->getFunding_option_id(), "TestSample");
// Check for Payer_info
$obj->setPayerInfo(null);
$this->assertNull($obj->getPayer_info());
$this->assertNull($obj->getPayerInfo());
$this->assertSame($obj->getPayerInfo(), $obj->getPayer_info());
$obj->setPayer_info(PayerInfoTest::getObject());
$this->assertEquals($obj->getPayer_info(), PayerInfoTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -81,107 +81,4 @@ class PaymentCardTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PaymentCard $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getExpire_month(), 123);
$this->assertEquals($obj->getExpire_year(), 123);
$this->assertEquals($obj->getStart_month(), 123);
$this->assertEquals($obj->getStart_year(), 123);
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PaymentCard $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Expire_month
$obj->setExpireMonth(null);
$this->assertNull($obj->getExpire_month());
$this->assertNull($obj->getExpireMonth());
$this->assertSame($obj->getExpireMonth(), $obj->getExpire_month());
$obj->setExpire_month(123);
$this->assertEquals($obj->getExpire_month(), 123);
// Check for Expire_year
$obj->setExpireYear(null);
$this->assertNull($obj->getExpire_year());
$this->assertNull($obj->getExpireYear());
$this->assertSame($obj->getExpireYear(), $obj->getExpire_year());
$obj->setExpire_year(123);
$this->assertEquals($obj->getExpire_year(), 123);
// Check for Start_month
$obj->setStartMonth(null);
$this->assertNull($obj->getStart_month());
$this->assertNull($obj->getStartMonth());
$this->assertSame($obj->getStartMonth(), $obj->getStart_month());
$obj->setStart_month(123);
$this->assertEquals($obj->getStart_month(), 123);
// Check for Start_year
$obj->setStartYear(null);
$this->assertNull($obj->getStart_year());
$this->assertNull($obj->getStartYear());
$this->assertSame($obj->getStartYear(), $obj->getStart_year());
$obj->setStart_year(123);
$this->assertEquals($obj->getStart_year(), 123);
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Billing_address
$obj->setBillingAddress(null);
$this->assertNull($obj->getBilling_address());
$this->assertNull($obj->getBillingAddress());
$this->assertSame($obj->getBillingAddress(), $obj->getBilling_address());
$obj->setBilling_address(AddressTest::getObject());
$this->assertEquals($obj->getBilling_address(), AddressTest::getObject());
// Check for External_customer_id
$obj->setExternalCustomerId(null);
$this->assertNull($obj->getExternal_customer_id());
$this->assertNull($obj->getExternalCustomerId());
$this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id());
$obj->setExternal_customer_id("TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
// Check for Valid_until
$obj->setValidUntil(null);
$this->assertNull($obj->getValid_until());
$this->assertNull($obj->getValidUntil());
$this->assertSame($obj->getValidUntil(), $obj->getValid_until());
$obj->setValid_until("TestSample");
$this->assertEquals($obj->getValid_until(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,62 +63,4 @@ class PaymentCardTokenTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getExpireYear(), 123);
}
/**
* @depends testSerializationDeserialization
* @param PaymentCardToken $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getPayment_card_id(), "TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
$this->assertEquals($obj->getExpire_month(), 123);
$this->assertEquals($obj->getExpire_year(), 123);
}
/**
* @depends testSerializationDeserialization
* @param PaymentCardToken $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Payment_card_id
$obj->setPaymentCardId(null);
$this->assertNull($obj->getPayment_card_id());
$this->assertNull($obj->getPaymentCardId());
$this->assertSame($obj->getPaymentCardId(), $obj->getPayment_card_id());
$obj->setPayment_card_id("TestSample");
$this->assertEquals($obj->getPayment_card_id(), "TestSample");
// Check for External_customer_id
$obj->setExternalCustomerId(null);
$this->assertNull($obj->getExternal_customer_id());
$this->assertNull($obj->getExternalCustomerId());
$this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id());
$obj->setExternal_customer_id("TestSample");
$this->assertEquals($obj->getExternal_customer_id(), "TestSample");
// Check for Expire_month
$obj->setExpireMonth(null);
$this->assertNull($obj->getExpire_month());
$this->assertNull($obj->getExpireMonth());
$this->assertSame($obj->getExpireMonth(), $obj->getExpire_month());
$obj->setExpire_month(123);
$this->assertEquals($obj->getExpire_month(), 123);
// Check for Expire_year
$obj->setExpireYear(null);
$this->assertNull($obj->getExpire_year());
$this->assertNull($obj->getExpireYear());
$this->assertSame($obj->getExpireYear(), $obj->getExpire_year());
$obj->setExpire_year(123);
$this->assertEquals($obj->getExpire_year(), 123);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -67,44 +67,4 @@ class PaymentDefinitionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getChargeModels(), ChargeModelTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PaymentDefinition $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getFrequency_interval(), "TestSample");
$this->assertEquals($obj->getCharge_models(), ChargeModelTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PaymentDefinition $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Frequency_interval
$obj->setFrequencyInterval(null);
$this->assertNull($obj->getFrequency_interval());
$this->assertNull($obj->getFrequencyInterval());
$this->assertSame($obj->getFrequencyInterval(), $obj->getFrequency_interval());
$obj->setFrequency_interval("TestSample");
$this->assertEquals($obj->getFrequency_interval(), "TestSample");
// Check for Charge_models
$obj->setChargeModels(null);
$this->assertNull($obj->getCharge_models());
$this->assertNull($obj->getChargeModels());
$this->assertSame($obj->getChargeModels(), $obj->getCharge_models());
$obj->setCharge_models(ChargeModelTest::getObject());
$this->assertEquals($obj->getCharge_models(), ChargeModelTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,44 +63,4 @@ class PaymentDetailTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getNote(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PaymentDetail $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTransaction_id(), "TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PaymentDetail $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Transaction_id
$obj->setTransactionId(null);
$this->assertNull($obj->getTransaction_id());
$this->assertNull($obj->getTransactionId());
$this->assertSame($obj->getTransactionId(), $obj->getTransaction_id());
$obj->setTransaction_id("TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
// Check for Transaction_type
$obj->setTransactionType(null);
$this->assertNull($obj->getTransaction_type());
$this->assertNull($obj->getTransactionType());
$this->assertSame($obj->getTransactionType(), $obj->getTransaction_type());
$obj->setTransaction_type("TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -54,45 +54,5 @@ class PaymentTermTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTermType(), "TestSample");
$this->assertEquals($obj->getDueDate(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PaymentTerm $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTerm_type(), "TestSample");
$this->assertEquals($obj->getDue_date(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PaymentTerm $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Term_type
$obj->setTermType(null);
$this->assertNull($obj->getTerm_type());
$this->assertNull($obj->getTermType());
$this->assertSame($obj->getTermType(), $obj->getTerm_type());
$obj->setTerm_type("TestSample");
$this->assertEquals($obj->getTerm_type(), "TestSample");
// Check for Due_date
$obj->setDueDate(null);
$this->assertNull($obj->getDue_date());
$this->assertNull($obj->getDueDate());
$this->assertSame($obj->getDueDate(), $obj->getDue_date());
$obj->setDue_date("TestSample");
$this->assertEquals($obj->getDue_date(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -69,71 +69,4 @@ class PayoutBatchHeaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutBatchHeader $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
$this->assertEquals($obj->getBatch_status(), "TestSample");
$this->assertEquals($obj->getTime_created(), "TestSample");
$this->assertEquals($obj->getTime_completed(), "TestSample");
$this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutBatchHeader $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Payout_batch_id
$obj->setPayoutBatchId(null);
$this->assertNull($obj->getPayout_batch_id());
$this->assertNull($obj->getPayoutBatchId());
$this->assertSame($obj->getPayoutBatchId(), $obj->getPayout_batch_id());
$obj->setPayout_batch_id("TestSample");
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
// Check for Batch_status
$obj->setBatchStatus(null);
$this->assertNull($obj->getBatch_status());
$this->assertNull($obj->getBatchStatus());
$this->assertSame($obj->getBatchStatus(), $obj->getBatch_status());
$obj->setBatch_status("TestSample");
$this->assertEquals($obj->getBatch_status(), "TestSample");
// Check for Time_created
$obj->setTimeCreated(null);
$this->assertNull($obj->getTime_created());
$this->assertNull($obj->getTimeCreated());
$this->assertSame($obj->getTimeCreated(), $obj->getTime_created());
$obj->setTime_created("TestSample");
$this->assertEquals($obj->getTime_created(), "TestSample");
// Check for Time_completed
$obj->setTimeCompleted(null);
$this->assertNull($obj->getTime_completed());
$this->assertNull($obj->getTimeCompleted());
$this->assertSame($obj->getTimeCompleted(), $obj->getTime_completed());
$obj->setTime_completed("TestSample");
$this->assertEquals($obj->getTime_completed(), "TestSample");
// Check for Sender_batch_header
$obj->setSenderBatchHeader(null);
$this->assertNull($obj->getSender_batch_header());
$this->assertNull($obj->getSenderBatchHeader());
$this->assertSame($obj->getSenderBatchHeader(), $obj->getSender_batch_header());
$obj->setSender_batch_header(PayoutSenderBatchHeaderTest::getObject());
$this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,35 +55,4 @@ class PayoutBatchTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getItems(), PayoutItemDetailsTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutBatch $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getBatch_header(), PayoutBatchHeaderTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutBatch $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Batch_header
$obj->setBatchHeader(null);
$this->assertNull($obj->getBatch_header());
$this->assertNull($obj->getBatchHeader());
$this->assertSame($obj->getBatchHeader(), $obj->getBatch_header());
$obj->setBatch_header(PayoutBatchHeaderTest::getObject());
$this->assertEquals($obj->getBatch_header(), PayoutBatchHeaderTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -71,98 +71,4 @@ class PayoutItemDetailsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutItemDetails $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getPayout_item_id(), "TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
$this->assertEquals($obj->getTransaction_status(), "TestSample");
$this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject());
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
$this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject());
$this->assertEquals($obj->getTime_processed(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutItemDetails $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Payout_item_id
$obj->setPayoutItemId(null);
$this->assertNull($obj->getPayout_item_id());
$this->assertNull($obj->getPayoutItemId());
$this->assertSame($obj->getPayoutItemId(), $obj->getPayout_item_id());
$obj->setPayout_item_id("TestSample");
$this->assertEquals($obj->getPayout_item_id(), "TestSample");
// Check for Transaction_id
$obj->setTransactionId(null);
$this->assertNull($obj->getTransaction_id());
$this->assertNull($obj->getTransactionId());
$this->assertSame($obj->getTransactionId(), $obj->getTransaction_id());
$obj->setTransaction_id("TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
// Check for Transaction_status
$obj->setTransactionStatus(null);
$this->assertNull($obj->getTransaction_status());
$this->assertNull($obj->getTransactionStatus());
$this->assertSame($obj->getTransactionStatus(), $obj->getTransaction_status());
$obj->setTransaction_status( "TestSample");
$this->assertEquals($obj->getTransaction_status(), "TestSample");
// Check for Payout_item_fee
$obj->setPayoutItemFee(null);
$this->assertNull($obj->getPayout_item_fee());
$this->assertNull($obj->getPayoutItemFee());
$this->assertSame($obj->getPayoutItemFee(), $obj->getPayout_item_fee());
$obj->setPayout_item_fee(CurrencyTest::getObject());
$this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject());
// Check for Payout_batch_id
$obj->setPayoutBatchId(null);
$this->assertNull($obj->getPayout_batch_id());
$this->assertNull($obj->getPayoutBatchId());
$this->assertSame($obj->getPayoutBatchId(), $obj->getPayout_batch_id());
$obj->setPayout_batch_id("TestSample");
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
// Check for Sender_batch_id
$obj->setSenderBatchId(null);
$this->assertNull($obj->getSender_batch_id());
$this->assertNull($obj->getSenderBatchId());
$this->assertSame($obj->getSenderBatchId(), $obj->getSender_batch_id());
$obj->setSender_batch_id("TestSample");
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
// Check for Payout_item
$obj->setPayoutItem(null);
$this->assertNull($obj->getPayout_item());
$this->assertNull($obj->getPayoutItem());
$this->assertSame($obj->getPayoutItem(), $obj->getPayout_item());
$obj->setPayout_item(PayoutItemTest::getObject());
$this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject());
// Check for Time_processed
$obj->setTimeProcessed(null);
$this->assertNull($obj->getTime_processed());
$this->assertNull($obj->getTimeProcessed());
$this->assertSame($obj->getTimeProcessed(), $obj->getTime_processed());
$obj->setTime_processed("TestSample");
$this->assertEquals($obj->getTime_processed(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -65,45 +65,6 @@ class PayoutItemTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getSenderItemId(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutItem $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getRecipient_type(), "TestSample");
$this->assertEquals($obj->getSender_item_id(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutItem $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Recipient_type
$obj->setRecipientType(null);
$this->assertNull($obj->getRecipient_type());
$this->assertNull($obj->getRecipientType());
$this->assertSame($obj->getRecipientType(), $obj->getRecipient_type());
$obj->setRecipient_type("TestSample");
$this->assertEquals($obj->getRecipient_type(), "TestSample");
// Check for Sender_item_id
$obj->setSenderItemId(null);
$this->assertNull($obj->getSender_item_id());
$this->assertNull($obj->getSenderItemId());
$this->assertSame($obj->getSenderItemId(), $obj->getSender_item_id());
$obj->setSender_item_id("TestSample");
$this->assertEquals($obj->getSender_item_id(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param PayoutItem $obj

View File

@@ -57,53 +57,4 @@ class PayoutSenderBatchHeaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getRecipientType(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutSenderBatchHeader $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
$this->assertEquals($obj->getEmail_subject(), "TestSample");
$this->assertEquals($obj->getRecipient_type(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutSenderBatchHeader $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Sender_batch_id
$obj->setSenderBatchId(null);
$this->assertNull($obj->getSender_batch_id());
$this->assertNull($obj->getSenderBatchId());
$this->assertSame($obj->getSenderBatchId(), $obj->getSender_batch_id());
$obj->setSender_batch_id("TestSample");
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
// Check for Email_subject
$obj->setEmailSubject(null);
$this->assertNull($obj->getEmail_subject());
$this->assertNull($obj->getEmailSubject());
$this->assertSame($obj->getEmailSubject(), $obj->getEmail_subject());
$obj->setEmail_subject("TestSample");
$this->assertEquals($obj->getEmail_subject(), "TestSample");
// Check for Recipient_type
$obj->setRecipientType(null);
$this->assertNull($obj->getRecipient_type());
$this->assertNull($obj->getRecipientType());
$this->assertSame($obj->getRecipientType(), $obj->getRecipient_type());
$obj->setRecipient_type("TestSample");
$this->assertEquals($obj->getRecipient_type(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -56,36 +56,6 @@ class PayoutTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Payout $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Payout $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Sender_batch_header
$obj->setSenderBatchHeader(null);
$this->assertNull($obj->getSender_batch_header());
$this->assertNull($obj->getSenderBatchHeader());
$this->assertSame($obj->getSenderBatchHeader(), $obj->getSender_batch_header());
$obj->setSender_batch_header(PayoutSenderBatchHeaderTest::getObject());
$this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param Payout $obj

View File

@@ -55,44 +55,4 @@ class PhoneTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getNationalNumber(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Phone $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCountry_code(), "TestSample");
$this->assertEquals($obj->getNational_number(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Phone $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Country_code
$obj->setCountryCode(null);
$this->assertNull($obj->getCountry_code());
$this->assertNull($obj->getCountryCode());
$this->assertSame($obj->getCountryCode(), $obj->getCountry_code());
$obj->setCountry_code("TestSample");
$this->assertEquals($obj->getCountry_code(), "TestSample");
// Check for National_number
$obj->setNationalNumber(null);
$this->assertNull($obj->getNational_number());
$this->assertNull($obj->getNationalNumber());
$this->assertSame($obj->getNationalNumber(), $obj->getNational_number());
$obj->setNational_number("TestSample");
$this->assertEquals($obj->getNational_number(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,44 +59,4 @@ class PlanListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PlanList $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTotal_items(), "TestSample");
$this->assertEquals($obj->getTotal_pages(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PlanList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Total_items
$obj->setTotalItems(null);
$this->assertNull($obj->getTotal_items());
$this->assertNull($obj->getTotalItems());
$this->assertSame($obj->getTotalItems(), $obj->getTotal_items());
$obj->setTotal_items("TestSample");
$this->assertEquals($obj->getTotal_items(), "TestSample");
// Check for Total_pages
$obj->setTotalPages(null);
$this->assertNull($obj->getTotal_pages());
$this->assertNull($obj->getTotalPages());
$this->assertSame($obj->getTotalPages(), $obj->getTotal_pages());
$obj->setTotal_pages("TestSample");
$this->assertEquals($obj->getTotal_pages(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -77,63 +77,6 @@ class PlanTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Plan $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCreate_time(), "TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
$this->assertEquals($obj->getPayment_definitions(), PaymentDefinitionTest::getObject());
$this->assertEquals($obj->getMerchant_preferences(), MerchantPreferencesTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Plan $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Create_time
$obj->setCreateTime(null);
$this->assertNull($obj->getCreate_time());
$this->assertNull($obj->getCreateTime());
$this->assertSame($obj->getCreateTime(), $obj->getCreate_time());
$obj->setCreate_time("TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
// Check for Update_time
$obj->setUpdateTime(null);
$this->assertNull($obj->getUpdate_time());
$this->assertNull($obj->getUpdateTime());
$this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time());
$obj->setUpdate_time("TestSample");
$this->assertEquals($obj->getUpdate_time(), "TestSample");
// Check for Payment_definitions
$obj->setPaymentDefinitions(null);
$this->assertNull($obj->getPayment_definitions());
$this->assertNull($obj->getPaymentDefinitions());
$this->assertSame($obj->getPaymentDefinitions(), $obj->getPayment_definitions());
$obj->setPayment_definitions(PaymentDefinitionTest::getObject());
$this->assertEquals($obj->getPayment_definitions(), PaymentDefinitionTest::getObject());
// Check for Merchant_preferences
$obj->setMerchantPreferences(null);
$this->assertNull($obj->getMerchant_preferences());
$this->assertNull($obj->getMerchantPreferences());
$this->assertSame($obj->getMerchantPreferences(), $obj->getMerchant_preferences());
$obj->setMerchant_preferences(MerchantPreferencesTest::getObject());
$this->assertEquals($obj->getMerchant_preferences(), MerchantPreferencesTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param Plan $obj

View File

@@ -57,53 +57,4 @@ class PresentationTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLocaleCode(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Presentation $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getBrand_name(), "TestSample");
$this->assertEquals($obj->getLogo_image(), "TestSample");
$this->assertEquals($obj->getLocale_code(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Presentation $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Brand_name
$obj->setBrandName(null);
$this->assertNull($obj->getBrand_name());
$this->assertNull($obj->getBrandName());
$this->assertSame($obj->getBrandName(), $obj->getBrand_name());
$obj->setBrand_name("TestSample");
$this->assertEquals($obj->getBrand_name(), "TestSample");
// Check for Logo_image
$obj->setLogoImage(null);
$this->assertNull($obj->getLogo_image());
$this->assertNull($obj->getLogoImage());
$this->assertSame($obj->getLogoImage(), $obj->getLogo_image());
$obj->setLogo_image("TestSample");
$this->assertEquals($obj->getLogo_image(), "TestSample");
// Check for Locale_code
$obj->setLocaleCode(null);
$this->assertNull($obj->getLocale_code());
$this->assertNull($obj->getLocaleCode());
$this->assertSame($obj->getLocaleCode(), $obj->getLocale_code());
$obj->setLocale_code("TestSample");
$this->assertEquals($obj->getLocale_code(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,26 +57,4 @@ class RefundDetailTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getNote(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param RefundDetail $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param RefundDetail $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -89,161 +89,4 @@ class SearchTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTotalCountRequired(), true);
}
/**
* @depends testSerializationDeserialization
* @param Search $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getRecipient_first_name(), "TestSample");
$this->assertEquals($obj->getRecipient_last_name(), "TestSample");
$this->assertEquals($obj->getRecipient_business_name(), "TestSample");
$this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getStart_invoice_date(), "TestSample");
$this->assertEquals($obj->getEnd_invoice_date(), "TestSample");
$this->assertEquals($obj->getStart_due_date(), "TestSample");
$this->assertEquals($obj->getEnd_due_date(), "TestSample");
$this->assertEquals($obj->getStart_payment_date(), "TestSample");
$this->assertEquals($obj->getEnd_payment_date(), "TestSample");
$this->assertEquals($obj->getStart_creation_date(), "TestSample");
$this->assertEquals($obj->getEnd_creation_date(), "TestSample");
$this->assertEquals($obj->getPage_size(), "12.34");
$this->assertEquals($obj->getTotal_count_required(), true);
}
/**
* @depends testSerializationDeserialization
* @param Search $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Recipient_first_name
$obj->setRecipientFirstName(null);
$this->assertNull($obj->getRecipient_first_name());
$this->assertNull($obj->getRecipientFirstName());
$this->assertSame($obj->getRecipientFirstName(), $obj->getRecipient_first_name());
$obj->setRecipient_first_name("TestSample");
$this->assertEquals($obj->getRecipient_first_name(), "TestSample");
// Check for Recipient_last_name
$obj->setRecipientLastName(null);
$this->assertNull($obj->getRecipient_last_name());
$this->assertNull($obj->getRecipientLastName());
$this->assertSame($obj->getRecipientLastName(), $obj->getRecipient_last_name());
$obj->setRecipient_last_name("TestSample");
$this->assertEquals($obj->getRecipient_last_name(), "TestSample");
// Check for Recipient_business_name
$obj->setRecipientBusinessName(null);
$this->assertNull($obj->getRecipient_business_name());
$this->assertNull($obj->getRecipientBusinessName());
$this->assertSame($obj->getRecipientBusinessName(), $obj->getRecipient_business_name());
$obj->setRecipient_business_name("TestSample");
$this->assertEquals($obj->getRecipient_business_name(), "TestSample");
// Check for Lower_total_amount
$obj->setLowerTotalAmount(null);
$this->assertNull($obj->getLower_total_amount());
$this->assertNull($obj->getLowerTotalAmount());
$this->assertSame($obj->getLowerTotalAmount(), $obj->getLower_total_amount());
$obj->setLower_total_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject());
// Check for Upper_total_amount
$obj->setUpperTotalAmount(null);
$this->assertNull($obj->getUpper_total_amount());
$this->assertNull($obj->getUpperTotalAmount());
$this->assertSame($obj->getUpperTotalAmount(), $obj->getUpper_total_amount());
$obj->setUpper_total_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject());
// Check for Start_invoice_date
$obj->setStartInvoiceDate(null);
$this->assertNull($obj->getStart_invoice_date());
$this->assertNull($obj->getStartInvoiceDate());
$this->assertSame($obj->getStartInvoiceDate(), $obj->getStart_invoice_date());
$obj->setStart_invoice_date("TestSample");
$this->assertEquals($obj->getStart_invoice_date(), "TestSample");
// Check for End_invoice_date
$obj->setEndInvoiceDate(null);
$this->assertNull($obj->getEnd_invoice_date());
$this->assertNull($obj->getEndInvoiceDate());
$this->assertSame($obj->getEndInvoiceDate(), $obj->getEnd_invoice_date());
$obj->setEnd_invoice_date("TestSample");
$this->assertEquals($obj->getEnd_invoice_date(), "TestSample");
// Check for Start_due_date
$obj->setStartDueDate(null);
$this->assertNull($obj->getStart_due_date());
$this->assertNull($obj->getStartDueDate());
$this->assertSame($obj->getStartDueDate(), $obj->getStart_due_date());
$obj->setStart_due_date("TestSample");
$this->assertEquals($obj->getStart_due_date(), "TestSample");
// Check for End_due_date
$obj->setEndDueDate(null);
$this->assertNull($obj->getEnd_due_date());
$this->assertNull($obj->getEndDueDate());
$this->assertSame($obj->getEndDueDate(), $obj->getEnd_due_date());
$obj->setEnd_due_date("TestSample");
$this->assertEquals($obj->getEnd_due_date(), "TestSample");
// Check for Start_payment_date
$obj->setStartPaymentDate(null);
$this->assertNull($obj->getStart_payment_date());
$this->assertNull($obj->getStartPaymentDate());
$this->assertSame($obj->getStartPaymentDate(), $obj->getStart_payment_date());
$obj->setStart_payment_date("TestSample");
$this->assertEquals($obj->getStart_payment_date(), "TestSample");
// Check for End_payment_date
$obj->setEndPaymentDate(null);
$this->assertNull($obj->getEnd_payment_date());
$this->assertNull($obj->getEndPaymentDate());
$this->assertSame($obj->getEndPaymentDate(), $obj->getEnd_payment_date());
$obj->setEnd_payment_date("TestSample");
$this->assertEquals($obj->getEnd_payment_date(), "TestSample");
// Check for Start_creation_date
$obj->setStartCreationDate(null);
$this->assertNull($obj->getStart_creation_date());
$this->assertNull($obj->getStartCreationDate());
$this->assertSame($obj->getStartCreationDate(), $obj->getStart_creation_date());
$obj->setStart_creation_date("TestSample");
$this->assertEquals($obj->getStart_creation_date(), "TestSample");
// Check for End_creation_date
$obj->setEndCreationDate(null);
$this->assertNull($obj->getEnd_creation_date());
$this->assertNull($obj->getEndCreationDate());
$this->assertSame($obj->getEndCreationDate(), $obj->getEnd_creation_date());
$obj->setEnd_creation_date("TestSample");
$this->assertEquals($obj->getEnd_creation_date(), "TestSample");
// Check for Page_size
$obj->setPageSize(null);
$this->assertNull($obj->getPage_size());
$this->assertNull($obj->getPageSize());
$this->assertSame($obj->getPageSize(), $obj->getPage_size());
$obj->setPage_size("12.34");
$this->assertEquals($obj->getPage_size(), "12.34");
// Check for Total_count_required
$obj->setTotalCountRequired(null);
$this->assertNull($obj->getTotal_count_required());
$this->assertNull($obj->getTotalCountRequired());
$this->assertSame($obj->getTotalCountRequired(), $obj->getTotal_count_required());
$obj->setTotal_count_required(true);
$this->assertEquals($obj->getTotal_count_required(), true);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -57,44 +57,4 @@ class ShippingAddressTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getDefaultAddress(), true);
}
/**
* @depends testSerializationDeserialization
* @param ShippingAddress $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getRecipient_name(), "TestSample");
$this->assertEquals($obj->getDefault_address(), true);
}
/**
* @depends testSerializationDeserialization
* @param ShippingAddress $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Recipient_name
$obj->setRecipientName(null);
$this->assertNull($obj->getRecipient_name());
$this->assertNull($obj->getRecipientName());
$this->assertSame($obj->getRecipientName(), $obj->getRecipient_name());
$obj->setRecipient_name("TestSample");
$this->assertEquals($obj->getRecipient_name(), "TestSample");
// Check for Default_address
$obj->setDefaultAddress(null);
$this->assertNull($obj->getDefault_address());
$this->assertNull($obj->getDefaultAddress());
$this->assertSame($obj->getDefaultAddress(), $obj->getDefault_address());
$obj->setDefault_address(true);
$this->assertEquals($obj->getDefault_address(), true);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -55,26 +55,4 @@ class ShippingCostTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTax(), TaxTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param ShippingCost $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param ShippingCost $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,53 +59,4 @@ class ShippingInfoTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAddress(), AddressTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param ShippingInfo $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getFirst_name(), "TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param ShippingInfo $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for First_name
$obj->setFirstName(null);
$this->assertNull($obj->getFirst_name());
$this->assertNull($obj->getFirstName());
$this->assertSame($obj->getFirstName(), $obj->getFirst_name());
$obj->setFirst_name("TestSample");
$this->assertEquals($obj->getFirst_name(), "TestSample");
// Check for Last_name
$obj->setLastName(null);
$this->assertNull($obj->getLast_name());
$this->assertNull($obj->getLastName());
$this->assertSame($obj->getLastName(), $obj->getLast_name());
$obj->setLast_name("TestSample");
$this->assertEquals($obj->getLast_name(), "TestSample");
// Check for Business_name
$obj->setBusinessName(null);
$this->assertNull($obj->getBusiness_name());
$this->assertNull($obj->getBusinessName());
$this->assertSame($obj->getBusinessName(), $obj->getBusiness_name());
$obj->setBusiness_name("TestSample");
$this->assertEquals($obj->getBusiness_name(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,26 +59,4 @@ class TaxTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Tax $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param Tax $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,53 +63,4 @@ class TermsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getBuyerEditable(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Terms $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getMax_billing_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getAmount_range(), CurrencyTest::getObject());
$this->assertEquals($obj->getBuyer_editable(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Terms $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Max_billing_amount
$obj->setMaxBillingAmount(null);
$this->assertNull($obj->getMax_billing_amount());
$this->assertNull($obj->getMaxBillingAmount());
$this->assertSame($obj->getMaxBillingAmount(), $obj->getMax_billing_amount());
$obj->setMax_billing_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getMax_billing_amount(), CurrencyTest::getObject());
// Check for Amount_range
$obj->setAmountRange(null);
$this->assertNull($obj->getAmount_range());
$this->assertNull($obj->getAmountRange());
$this->assertSame($obj->getAmountRange(), $obj->getAmount_range());
$obj->setAmount_range(CurrencyTest::getObject());
$this->assertEquals($obj->getAmount_range(), CurrencyTest::getObject());
// Check for Buyer_editable
$obj->setBuyerEditable(null);
$this->assertNull($obj->getBuyer_editable());
$this->assertNull($obj->getBuyerEditable());
$this->assertSame($obj->getBuyerEditable(), $obj->getBuyer_editable());
$obj->setBuyer_editable("TestSample");
$this->assertEquals($obj->getBuyer_editable(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -65,45 +65,6 @@ class WebProfileTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getPresentation(), PresentationTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebProfile $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getFlow_config(), FlowConfigTest::getObject());
$this->assertEquals($obj->getInput_fields(), InputFieldsTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebProfile $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Flow_config
$obj->setFlowConfig(null);
$this->assertNull($obj->getFlow_config());
$this->assertNull($obj->getFlowConfig());
$this->assertSame($obj->getFlowConfig(), $obj->getFlow_config());
$obj->setFlow_config(FlowConfigTest::getObject());
$this->assertEquals($obj->getFlow_config(), FlowConfigTest::getObject());
// Check for Input_fields
$obj->setInputFields(null);
$this->assertNull($obj->getInput_fields());
$this->assertNull($obj->getInputFields());
$this->assertSame($obj->getInputFields(), $obj->getInput_fields());
$obj->setInput_fields(InputFieldsTest::getObject());
$this->assertEquals($obj->getInput_fields(), InputFieldsTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param WebProfile $obj

View File

@@ -57,26 +57,4 @@ class WebhookEventListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventList $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -69,54 +69,6 @@ class WebhookEventTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebhookEvent $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getCreate_time(), "TestSample");
$this->assertEquals($obj->getResource_type(), "TestSample");
$this->assertEquals($obj->getEvent_type(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param WebhookEvent $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Create_time
$obj->setCreateTime(null);
$this->assertNull($obj->getCreate_time());
$this->assertNull($obj->getCreateTime());
$this->assertSame($obj->getCreateTime(), $obj->getCreate_time());
$obj->setCreate_time("TestSample");
$this->assertEquals($obj->getCreate_time(), "TestSample");
// Check for Resource_type
$obj->setResourceType(null);
$this->assertNull($obj->getResource_type());
$this->assertNull($obj->getResourceType());
$this->assertSame($obj->getResourceType(), $obj->getResource_type());
$obj->setResource_type("TestSample");
$this->assertEquals($obj->getResource_type(), "TestSample");
// Check for Event_type
$obj->setEventType(null);
$this->assertNull($obj->getEvent_type());
$this->assertNull($obj->getEventType());
$this->assertSame($obj->getEventType(), $obj->getEvent_type());
$obj->setEvent_type("TestSample");
$this->assertEquals($obj->getEvent_type(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param WebhookEvent $obj

View File

@@ -53,35 +53,4 @@ class WebhookEventTypeListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventTypeList $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventTypeList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Event_types
$obj->setEventTypes(null);
$this->assertNull($obj->getEvent_types());
$this->assertNull($obj->getEventTypes());
$this->assertSame($obj->getEventTypes(), $obj->getEvent_types());
$obj->setEvent_types(WebhookEventTypeTest::getObject());
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -59,27 +59,6 @@ class WebhookEventTypeTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getDescription(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventType $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param WebhookEventType $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @dataProvider mockProvider
* @param WebhookEventType $obj

View File

@@ -53,26 +53,4 @@ class WebhookListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getWebhooks(), WebhookTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param WebhookList $obj
*/
public function testDeprecatedGetters($obj)
{
}
/**
* @depends testSerializationDeserialization
* @param WebhookList $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}

View File

@@ -63,35 +63,6 @@ class WebhookTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Webhook $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param Webhook $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Event_types
$obj->setEventTypes(null);
$this->assertNull($obj->getEvent_types());
$this->assertNull($obj->getEventTypes());
$this->assertSame($obj->getEventTypes(), $obj->getEvent_types());
$obj->setEvent_types(WebhookEventTypeTest::getObject());
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Url is not a fully qualified URL