assertNotNull($obj); $this->assertNotNull($obj->getTotalCost()); $this->assertNotNull($obj->getTerm()); $this->assertNotNull($obj->getMonthlyPayment()); $this->assertNotNull($obj->getTotalInterest()); $this->assertNotNull($obj->getPayerAcceptance()); $this->assertNotNull($obj->getCartAmountImmutable()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param CreditFinancingOffered $obj */ public function testGetters($obj) { $this->assertEquals($obj->getTotalCost(), CurrencyTest::getObject()); $this->assertEquals($obj->getTerm(), "12.34"); $this->assertEquals($obj->getMonthlyPayment(), CurrencyTest::getObject()); $this->assertEquals($obj->getTotalInterest(), CurrencyTest::getObject()); $this->assertEquals($obj->getPayerAcceptance(), true); $this->assertEquals($obj->getCartAmountImmutable(), true); } }