assertNotNull($obj); $this->assertNotNull($obj->getEvents()); $this->assertNotNull($obj->getCount()); $this->assertNotNull($obj->getLinks()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param WebhookEventList $obj */ public function testGetters($obj) { $this->assertEquals($obj->getEvents(), WebhookEventTest::getObject()); $this->assertEquals($obj->getCount(), 123); $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); } }