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

@@ -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);
}
}