Inheritance: extends PHPUnit_Framework_TestCase
 /**
  * @depends testSerializationDeserialization
  * @param PlanList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPlans(), PlanTest::getObject());
     $this->assertEquals($obj->getTotalItems(), "TestSample");
     $this->assertEquals($obj->getTotalPages(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param Webhook $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getUrl(), "http://www.google.com");
     $this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param CreditCardList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getItems(), CreditCardTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
     $this->assertEquals($obj->getTotalItems(), 123);
     $this->assertEquals($obj->getTotalPages(), 123);
 }
示例#4
0
 public function setup()
 {
     $this->captures['partial'] = self::createCapture();
     $capture = self::createCapture();
     $capture->setAmount(AmountTest::createAmount());
     $capture->setLinks(array(LinksTest::createLinks()));
     $this->captures['full'] = $capture;
 }
示例#5
0
 /**
  * @depends testSerializationDeserialization
  * @param Templates $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getAddresses(), AddressTest::getObject());
     $this->assertEquals($obj->getEmails(), "TestSample");
     $this->assertEquals($obj->getPhones(), PhoneTest::getObject());
     $this->assertEquals($obj->getTemplates(), TemplateTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#6
0
 /**
  * @depends testSerializationDeserialization
  * @param Error $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDebugId(), "TestSample");
     $this->assertEquals($obj->getMessage(), "TestSample");
     $this->assertEquals($obj->getInformationLink(), "TestSample");
     $this->assertEquals($obj->getDetails(), ErrorDetailsTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#7
0
 /**
  * @depends testSerializationDeserialization
  * @param FundingOption $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getFundingSources(), FundingSourceTest::getObject());
     $this->assertEquals($obj->getBackupFundingInstrument(), FundingInstrumentTest::getObject());
     $this->assertEquals($obj->getCurrencyConversion(), CurrencyConversionTest::getObject());
     $this->assertEquals($obj->getInstallmentInfo(), InstallmentInfoTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 public function setup()
 {
     $card = self::createCreditCard();
     $card->setBillingAddress(AddressTest::createAddress());
     $card->setLinks(array(LinksTest::createLinks()));
     $this->cards['full'] = $card;
     $card = self::createCreditCard();
     $this->cards['partial'] = $card;
 }
示例#9
0
 /**
  * @depends testSerializationDeserialization
  * @param HyperSchema $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
     $this->assertEquals($obj->getFragmentResolution(), "TestSample");
     $this->assertEquals($obj->getReadonly(), true);
     $this->assertEquals($obj->getContentEncoding(), "TestSample");
     $this->assertEquals($obj->getPathStart(), "TestSample");
     $this->assertEquals($obj->getMediaType(), "TestSample");
 }
示例#10
0
 public static function createAuthorization()
 {
     $authorization = new Authorization();
     $authorization->setCreateTime(self::$create_time);
     $authorization->setId(self::$id);
     $authorization->setState(self::$state);
     $authorization->setAmount(AmountTest::createAmount());
     $authorization->setLinks(array(LinksTest::createLinks()));
     return $authorization;
 }
 /**
  * @depends testSerializationDeserialization
  * @param PaymentInstruction $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getReferenceNumber(), "TestSample");
     $this->assertEquals($obj->getInstructionType(), "TestSample");
     $this->assertEquals($obj->getRecipientBankingInstruction(), RecipientBankingInstructionTest::getObject());
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getPaymentDueDate(), "TestSample");
     $this->assertEquals($obj->getNote(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param WebhookEvent $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getResourceType(), "TestSample");
     $this->assertEquals($obj->getEventType(), "TestSample");
     $this->assertEquals($obj->getSummary(), "TestSample");
     $this->assertEquals($obj->getResource(), "TestSampleObject");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#13
0
 public static function createRefund()
 {
     $refund = new Refund();
     $refund->setCreateTime(self::$createTime);
     $refund->setAmount(AmountTest::createAmount());
     $refund->setCaptureId(self::$captureId);
     $refund->setId(self::$id);
     $refund->setLinks(array(LinksTest::getObject()));
     $refund->setParentPayment(self::$parentPayment);
     return $refund;
 }
示例#14
0
 public static function createSale()
 {
     $sale = new Sale();
     $sale->setAmount(AmountTest::createAmount());
     $sale->setCreateTime(self::$createTime);
     $sale->setId(self::$id);
     $sale->setLinks(array(LinksTest::createLinks()));
     $sale->setParentPayment(self::$parentPayment);
     $sale->setState(self::$state);
     return $sale;
 }
 /**
  * @depends testSerializationDeserialization
  * @param CurrencyConversion $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getConversionDate(), "TestSample");
     $this->assertEquals($obj->getFromCurrency(), "TestSample");
     $this->assertEquals($obj->getFromAmount(), "TestSample");
     $this->assertEquals($obj->getToCurrency(), "TestSample");
     $this->assertEquals($obj->getToAmount(), "TestSample");
     $this->assertEquals($obj->getConversionType(), "TestSample");
     $this->assertEquals($obj->getConversionTypeChangeable(), true);
     $this->assertEquals($obj->getWebUrl(), "http://www.google.com");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param PayoutBatchHeader $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPayoutBatchId(), "TestSample");
     $this->assertEquals($obj->getBatchStatus(), "TestSample");
     $this->assertEquals($obj->getTimeCreated(), "TestSample");
     $this->assertEquals($obj->getTimeCompleted(), "TestSample");
     $this->assertEquals($obj->getSenderBatchHeader(), PayoutSenderBatchHeaderTest::getObject());
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getFees(), CurrencyTest::getObject());
     $this->assertEquals($obj->getErrors(), ErrorTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#17
0
 /**
  * @depends testSerializationDeserialization
  * @param FundingSource $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getFundingMode(), "TestSample");
     $this->assertEquals($obj->getFundingInstrumentType(), "TestSample");
     $this->assertEquals($obj->getSoftDescriptor(), "TestSample");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getLegalText(), "TestSample");
     $this->assertEquals($obj->getFundingDetail(), FundingDetailTest::getObject());
     $this->assertEquals($obj->getAdditionalText(), "TestSample");
     $this->assertEquals($obj->getExtends(), FundingInstrumentTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param Capture $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getIsFinalCapture(), true);
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getTransactionFee(), CurrencyTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param PayoutItemDetails $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPayoutItemId(), "TestSample");
     $this->assertEquals($obj->getTransactionId(), "TestSample");
     $this->assertEquals($obj->getTransactionStatus(), "TestSample");
     $this->assertEquals($obj->getPayoutItemFee(), CurrencyTest::getObject());
     $this->assertEquals($obj->getPayoutBatchId(), "TestSample");
     $this->assertEquals($obj->getSenderBatchId(), "TestSample");
     $this->assertEquals($obj->getPayoutItem(), PayoutItemTest::getObject());
     $this->assertEquals($obj->getTimeProcessed(), "TestSample");
     $this->assertEquals($obj->getErrors(), ErrorTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#20
0
 /**
  * @depends testSerializationDeserialization
  * @param Error $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getMessage(), "TestSample");
     $this->assertEquals($obj->getCode(), "TestSample");
     $this->assertEquals($obj->getDetails(), ErrorDetailsTest::getObject());
     $this->assertEquals($obj->getProcessorResponse(), ProcessorResponseTest::getObject());
     $this->assertEquals($obj->getFmfDetails(), FmfDetailsTest::getObject());
     $this->assertEquals($obj->getInformationLink(), "TestSample");
     $this->assertEquals($obj->getDebugId(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#21
0
文件: PlanTest.php 项目: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param Plan $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getPaymentDefinitions(), PaymentDefinitionTest::getObject());
     $this->assertEquals($obj->getTerms(), TermsTest::getObject());
     $this->assertEquals($obj->getMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#22
0
 /**
  * @depends testSerializationDeserialization
  * @param Refund $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReason(), "TestSample");
     $this->assertEquals($obj->getSaleId(), "TestSample");
     $this->assertEquals($obj->getCaptureId(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#23
0
 /**
  * @depends testSerializationDeserialization
  * @param Agreement $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getStartDate(), "TestSample");
     $this->assertEquals($obj->getPayer(), PayerTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getOverrideMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getOverrideChargeModels(), OverrideChargeModelTest::getObject());
     $this->assertEquals($obj->getPlan(), PlanTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#24
0
 /**
  * @depends testSerializationDeserialization
  * @param CreditCard $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getNumber(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getExpireMonth(), 123);
     $this->assertEquals($obj->getExpireYear(), 123);
     $this->assertEquals($obj->getCvv2(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getExternalCustomerId(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getValidUntil(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param Payment $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getIntent(), "TestSample");
     $this->assertEquals($obj->getPayer(), PayerTest::getObject());
     $this->assertEquals($obj->getPayee(), PayeeTest::getObject());
     $this->assertEquals($obj->getCart(), "TestSample");
     $this->assertEquals($obj->getTransactions(), TransactionTest::getObject());
     $this->assertEquals($obj->getFailedTransactions(), ErrorTest::getObject());
     $this->assertEquals($obj->getPaymentInstruction(), PaymentInstructionTest::getObject());
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getExperienceProfileId(), "TestSample");
     $this->assertEquals($obj->getRedirectUrls(), RedirectUrlsTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#26
0
 /**
  * @depends testSerializationDeserialization
  * @param Order $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getPaymentMode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReasonCode(), "TestSample");
     $this->assertEquals($obj->getPendingReason(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibility(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibilityType(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getFmfDetails(), FmfDetailsTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#27
0
 /**
  * @depends testSerializationDeserialization
  * @param Payment $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getIntent(), "TestSample");
     $this->assertEquals($obj->getPayer(), PayerTest::getObject());
     $this->assertEquals($obj->getPotentialPayerInfo(), PotentialPayerInfoTest::getObject());
     $this->assertEquals($obj->getPayee(), PayeeTest::getObject());
     $this->assertEquals($obj->getCart(), "TestSample");
     $this->assertEquals($obj->getTransactions(), array(TransactionTest::getObject()));
     $this->assertEquals($obj->getFailedTransactions(), ErrorTest::getObject());
     $this->assertEquals($obj->getBillingAgreementTokens(), array("TestSample"));
     $this->assertEquals($obj->getCreditFinancingOffered(), CreditFinancingOfferedTest::getObject());
     $this->assertEquals($obj->getPaymentInstruction(), PaymentInstructionTest::getObject());
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getExperienceProfileId(), "TestSample");
     $this->assertEquals($obj->getNoteToPayer(), "TestSample");
     $this->assertEquals($obj->getRedirectUrls(), RedirectUrlsTest::getObject());
     $this->assertEquals($obj->getFailureReason(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#28
0
 /**
  * @depends testSerializationDeserialization
  * @param Sale $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getPaymentMode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReasonCode(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibility(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibilityType(), "TestSample");
     $this->assertEquals($obj->getClearingTime(), "TestSample");
     $this->assertEquals($obj->getRecipientFundStatus(), "TestSample");
     $this->assertEquals($obj->getHoldReason(), "TestSample");
     $this->assertEquals($obj->getTransactionFee(), CurrencyTest::getObject());
     $this->assertEquals($obj->getReceivableAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getExchangeRate(), "TestSample");
     $this->assertEquals($obj->getFmfDetails(), FmfDetailsTest::getObject());
     $this->assertEquals($obj->getReceiptId(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param WebhookEventList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEvents(), WebhookEventTest::getObject());
     $this->assertEquals($obj->getCount(), 123);
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
示例#30
0
 /**
  * @depends testSerializationDeserialization
  * @param Payout $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getSenderBatchHeader(), PayoutSenderBatchHeaderTest::getObject());
     $this->assertEquals($obj->getItems(), PayoutItemTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }