public function testSetterGetterWithValidData() { $payInitParameter = new PayInitParameter(); $payInitParameter->setAccountid(self::ACCOUNTID)->setAmount(self::AMOUNT)->setCssurl(self::CSSURL)->setCurrency(self::CURRENCY)->setDescription(self::DESCRIPTION)->setOrderid(self::ORDERID)->setVtconfig(self::VTCONFIG)->setSuccesslink(self::SUCCESSLINK)->setFaillink(self::FAILLINK)->setBacklink(self::BACKLINK)->setNotifyurl(self::NOTIFYURL)->setAutoclose(self::AUTOCLOSE)->setCcname(self::CCNAME)->setNotifyaddress(self::NOTIFYADDRESS)->setUsernotify(self::USERNOTIFY)->setLangid(self::LANGID)->setShowlanguages(self::SHOWLANGUAGES)->setPaymentmethods(unserialize(self::PAYMENTMETHODS))->setProviderset(unserialize(self::PROVIDERSET))->setDuration(self::DURATION)->setCardrefid(self::CARDREFID)->setDelivery(self::DELIVERY)->setAppearance(self::APPEARANCE)->setAddress(self::ADDRESS)->setCompany(self::COMPANY)->setGender(self::GENDER)->setFirstname(self::FIRSTNAME)->setLastname(self::LASTNAME)->setStreet(self::STREET)->setZip(self::ZIP)->setCity(self::CITY)->setCountry(self::COUNTRY)->setEmail(self::EMAIL)->setPhone(self::PHONE); $this->assertEquals(self::ACCOUNTID, $payInitParameter->getAccountid()); $this->assertEquals(self::AMOUNT, $payInitParameter->getAmount()); $this->assertEquals(self::CSSURL, $payInitParameter->getCssurl()); $this->assertEquals(self::CURRENCY, $payInitParameter->getCurrency()); $this->assertEquals(self::DESCRIPTION, $payInitParameter->getDescription()); $this->assertEquals(self::ORDERID, $payInitParameter->getOrderid()); $this->assertEquals(self::VTCONFIG, $payInitParameter->getVtconfig()); $this->assertEquals(self::SUCCESSLINK, $payInitParameter->getSuccesslink()); $this->assertEquals(self::FAILLINK, $payInitParameter->getFaillink()); $this->assertEquals(self::BACKLINK, $payInitParameter->getBacklink()); $this->assertEquals(self::NOTIFYURL, $payInitParameter->getNotifyurl()); $this->assertEquals(self::AUTOCLOSE, $payInitParameter->getAutoclose()); $this->assertEquals(self::CCNAME, $payInitParameter->getCcname()); $this->assertEquals(self::NOTIFYADDRESS, $payInitParameter->getNotifyaddress()); $this->assertEquals(self::USERNOTIFY, $payInitParameter->getUsernotify()); $this->assertEquals(self::LANGID, $payInitParameter->getLangid()); $this->assertEquals(self::SHOWLANGUAGES, $payInitParameter->getShowlanguages()); $this->assertEquals(unserialize(self::PAYMENTMETHODS), $payInitParameter->getPaymentmethods()); $this->assertEquals(unserialize(self::PROVIDERSET), $payInitParameter->getProviderset()); $this->assertEquals(self::DURATION, $payInitParameter->getDuration()); $this->assertEquals(self::CARDREFID, $payInitParameter->getCardrefid()); $this->assertEquals(self::DELIVERY, $payInitParameter->getDelivery()); $this->assertEquals(self::APPEARANCE, $payInitParameter->getAppearance()); $this->assertEquals(self::ADDRESS, $payInitParameter->getAddress()); $this->assertEquals(self::COMPANY, $payInitParameter->getCompany()); $this->assertEquals(self::GENDER, $payInitParameter->getGender()); $this->assertEquals(self::FIRSTNAME, $payInitParameter->getFirstname()); $this->assertEquals(self::LASTNAME, $payInitParameter->getLastname()); $this->assertEquals(self::STREET, $payInitParameter->getStreet()); $this->assertEquals(self::ZIP, $payInitParameter->getZip()); $this->assertEquals(self::CITY, $payInitParameter->getCity()); $this->assertEquals(self::COUNTRY, $payInitParameter->getCountry()); $this->assertEquals(self::EMAIL, $payInitParameter->getEmail()); $this->assertEquals(self::PHONE, $payInitParameter->getPhone()); $this->assertCount(0, $payInitParameter->getInvalidData()); }