assertNotNull($obj); $this->assertNotNull($obj->getFundingMode()); $this->assertNotNull($obj->getFundingInstrumentType()); $this->assertNotNull($obj->getSoftDescriptor()); $this->assertNotNull($obj->getAmount()); $this->assertNotNull($obj->getLegalText()); $this->assertNotNull($obj->getFundingDetail()); $this->assertNotNull($obj->getAdditionalText()); $this->assertNotNull($obj->getExtends()); $this->assertNotNull($obj->getLinks()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param FundingSource $obj */ public function testGetters($obj) { $this->assertEquals($obj->getFundingMode(), "TestSample"); $this->assertEquals($obj->getFundingInstrumentType(), "TestSample"); $this->assertEquals($obj->getSoftDescriptor(), "TestSample"); $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getLegalText(), "TestSample"); $this->assertEquals($obj->getFundingDetail(), FundingDetailTest::getObject()); $this->assertEquals($obj->getAdditionalText(), "TestSample"); $this->assertEquals($obj->getExtends(), FundingInstrumentTest::getObject()); $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } }