assertNotNull($obj); $this->assertNotNull($obj->getTerm()); $this->assertNotNull($obj->getMonthlyPayment()); $this->assertNotNull($obj->getDiscountAmount()); $this->assertNotNull($obj->getDiscountPercentage()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param InstallmentOption $obj */ public function testGetters($obj) { $this->assertEquals($obj->getTerm(), 123); $this->assertEquals($obj->getMonthlyPayment(), CurrencyTest::getObject()); $this->assertEquals($obj->getDiscountAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getDiscountPercentage(), "TestSample"); } }