assertNotNull($obj); $this->assertNotNull($obj->getId()); $this->assertNotNull($obj->getFundingSources()); $this->assertNotNull($obj->getBackupFundingInstrument()); $this->assertNotNull($obj->getCurrencyConversion()); $this->assertNotNull($obj->getInstallmentInfo()); $this->assertNotNull($obj->getLinks()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param FundingOption $obj */ public function testGetters($obj) { $this->assertEquals($obj->getId(), "TestSample"); $this->assertEquals($obj->getFundingSources(), FundingSourceTest::getObject()); $this->assertEquals($obj->getBackupFundingInstrument(), FundingInstrumentTest::getObject()); $this->assertEquals($obj->getCurrencyConversion(), CurrencyConversionTest::getObject()); $this->assertEquals($obj->getInstallmentInfo(), InstallmentInfoTest::getObject()); $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } }