assertNotNull($obj); $this->assertNotNull($obj->getEmail()); $this->assertNotNull($obj->getFirstName()); $this->assertNotNull($obj->getLastName()); $this->assertNotNull($obj->getAddress()); $this->assertNotNull($obj->getBusinessName()); $this->assertNotNull($obj->getPhone()); $this->assertNotNull($obj->getFax()); $this->assertNotNull($obj->getWebsite()); $this->assertNotNull($obj->getTaxId()); $this->assertNotNull($obj->getAdditionalInfo()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param MerchantInfo $obj */ public function testGetters($obj) { $this->assertEquals($obj->getEmail(), "TestSample"); $this->assertEquals($obj->getFirstName(), "TestSample"); $this->assertEquals($obj->getLastName(), "TestSample"); $this->assertEquals($obj->getAddress(), AddressTest::getObject()); $this->assertEquals($obj->getBusinessName(), "TestSample"); $this->assertEquals($obj->getPhone(), PhoneTest::getObject()); $this->assertEquals($obj->getFax(), PhoneTest::getObject()); $this->assertEquals($obj->getWebsite(), "TestSample"); $this->assertEquals($obj->getTaxId(), "TestSample"); $this->assertEquals($obj->getAdditionalInfo(), "TestSample"); } }