assertNotNull($obj); $this->assertNotNull($obj->getId()); $this->assertNotNull($obj->getRecipientName()); $this->assertNotNull($obj->getDefaultAddress()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param ShippingAddress $obj */ public function testGetters($obj) { $this->assertEquals($obj->getId(), "TestSample"); $this->assertEquals($obj->getRecipientName(), "TestSample"); $this->assertEquals($obj->getDefaultAddress(), true); } }