当前位置: 首页>>代码示例>>PHP>>正文


PHP LinksTest::getObject方法代码示例

本文整理汇总了PHP中PayPal\Test\Api\LinksTest::getObject方法的典型用法代码示例。如果您正苦于以下问题:PHP LinksTest::getObject方法的具体用法?PHP LinksTest::getObject怎么用?PHP LinksTest::getObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PayPal\Test\Api\LinksTest的用法示例。


在下文中一共展示了LinksTest::getObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testGetters

 /**
  * @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());
 }
开发者ID:omasterdesign,项目名称:omasterdefault,代码行数:11,代码来源:PlanListTest.php

示例2: testGetters

 /**
  * @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);
 }
开发者ID:omasterdesign,项目名称:omasterdefault,代码行数:11,代码来源:CreditCardListTest.php

示例3: testGetters

 /**
  * @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());
 }
开发者ID:omasterdesign,项目名称:omasterdefault,代码行数:11,代码来源:WebhookTest.php

示例4: testGetters

 /**
  * @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());
 }
开发者ID:paypal,项目名称:rest-api-sdk-php,代码行数:12,代码来源:TemplatesTest.php

示例5: setup

 public function setup()
 {
     $this->captures['partial'] = self::createCapture();
     $capture = self::createCapture();
     $capture->setAmount(AmountTest::createAmount());
     $capture->setLinks(array(LinksTest::getObject()));
     $this->captures['full'] = $capture;
 }
开发者ID:johnmicahmiguel,项目名称:yodaphp,代码行数:8,代码来源:CaptureTest.php

示例6: testGetters

 /**
  * @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");
 }
开发者ID:Roc4rdho,项目名称:app,代码行数:13,代码来源:HyperSchemaTest.php

示例7: testGetters

 /**
  * @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());
 }
开发者ID:johnmicahmiguel,项目名称:yodaphp,代码行数:13,代码来源:ErrorTest.php

示例8: testGetters

 /**
  * @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());
 }
开发者ID:Roc4rdho,项目名称:app,代码行数:13,代码来源:FundingOptionTest.php

示例9: setup

 public function setup()
 {
     $card = self::createCreditCard();
     $card->setBillingAddress(AddressTest::getObject());
     $card->setLinks(array(LinksTest::getObject()));
     $this->cards['full'] = $card;
     $card = self::createCreditCard();
     $this->cards['partial'] = $card;
 }
开发者ID:paypal,项目名称:rest-api-sdk-php,代码行数:9,代码来源:CreditCardHistoryTest.php

示例10: testGetters

 /**
  * @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());
 }
开发者ID:maherelgamil,项目名称:Small-store-for-books-with-Laravel-5.1,代码行数:14,代码来源:WebhookEventTest.php

示例11: testGetters

 /**
  * @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());
 }
开发者ID:omasterdesign,项目名称:omasterdefault,代码行数:14,代码来源:PaymentInstructionTest.php

示例12: createRefund

 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;
 }
开发者ID:johnmicahmiguel,项目名称:yodaphp,代码行数:11,代码来源:RefundTest.php

示例13: createAuthorization

 public static function createAuthorization()
 {
     $authorization = new Authorization();
     $authorization->setCreateTime(self::$create_time);
     $authorization->setId(self::$id);
     $authorization->setState(self::$state);
     $authorization->setClearingTime(self::$clearing_time);
     $authorization->setAmount(AmountTest::createAmount());
     $authorization->setLinks(array(LinksTest::getObject()));
     return $authorization;
 }
开发者ID:johnmicahmiguel,项目名称:yodaphp,代码行数:11,代码来源:AuthorizationTest.php

示例14: testGetters

 /**
  * @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());
 }
开发者ID:omasterdesign,项目名称:omasterdefault,代码行数:16,代码来源:CaptureTest.php

示例15: testGetters

 /**
  * @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());
 }
开发者ID:paypal,项目名称:rest-api-sdk-php,代码行数:16,代码来源:PayoutBatchHeaderTest.php


注:本文中的PayPal\Test\Api\LinksTest::getObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。