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

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