assertNotNull($obj); $this->assertNotNull($obj->getSubtotal()); $this->assertNotNull($obj->getShipping()); $this->assertNotNull($obj->getTax()); $this->assertNotNull($obj->getHandlingFee()); $this->assertNotNull($obj->getShippingDiscount()); $this->assertNotNull($obj->getInsurance()); $this->assertNotNull($obj->getGiftWrap()); $this->assertNotNull($obj->getFee()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param Details $obj */ public function testGetters($obj) { $this->assertEquals($obj->getSubtotal(), "12.34"); $this->assertEquals($obj->getShipping(), "12.34"); $this->assertEquals($obj->getTax(), "12.34"); $this->assertEquals($obj->getHandlingFee(), "12.34"); $this->assertEquals($obj->getShippingDiscount(), "12.34"); $this->assertEquals($obj->getInsurance(), "12.34"); $this->assertEquals($obj->getGiftWrap(), "12.34"); $this->assertEquals($obj->getFee(), "12.34"); } }