assertNotNull($obj); $this->assertNotNull($obj->getReferenceId()); $this->assertNotNull($obj->getCode()); $this->assertNotNull($obj->getFundingAccountId()); $this->assertNotNull($obj->getDisplayText()); $this->assertNotNull($obj->getAmount()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param ExternalFunding $obj */ public function testGetters($obj) { $this->assertEquals($obj->getReferenceId(), "TestSample"); $this->assertEquals($obj->getCode(), "TestSample"); $this->assertEquals($obj->getFundingAccountId(), "TestSample"); $this->assertEquals($obj->getDisplayText(), "TestSample"); $this->assertEquals($obj->getAmount(), AmountTest::getObject()); } }