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

@@ -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