Inheritance: extends PHPUnit_Framework_TestCase
 public static function createFundingInstrument()
 {
     $fi = new FundingInstrument();
     $fi->setCreditCard(CreditCardTest::createCreditCard());
     $fi->setCreditCardToken(CreditCardTokenTest::createCreditCardToken());
     return $fi;
 }
 /**
  * @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);
 }
 /**
  * @depends testSerializationDeserialization
  * @param FundingInstrument $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getCreditCard(), CreditCardTest::getObject());
     $this->assertEquals($obj->getCreditCardToken(), CreditCardTokenTest::getObject());
     $this->assertEquals($obj->getPaymentCard(), PaymentCardTest::getObject());
     $this->assertEquals($obj->getPaymentCardToken(), PaymentCardTokenTest::getObject());
     $this->assertEquals($obj->getBankAccount(), ExtendedBankAccountTest::getObject());
     $this->assertEquals($obj->getBankAccountToken(), BankTokenTest::getObject());
     $this->assertEquals($obj->getCredit(), CreditTest::getObject());
 }
 /**
  * @depends testSerializationDeserialization
  * @param FundingInstrument $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getCreditCard(), CreditCardTest::getObject());
     $this->assertEquals($obj->getCreditCardToken(), CreditCardTokenTest::getObject());
     $this->assertEquals($obj->getPaymentCard(), PaymentCardTest::getObject());
     $this->assertEquals($obj->getBankAccount(), ExtendedBankAccountTest::getObject());
     $this->assertEquals($obj->getBankAccountToken(), BankTokenTest::getObject());
     $this->assertEquals($obj->getCredit(), CreditTest::getObject());
     $this->assertEquals($obj->getIncentive(), IncentiveTest::getObject());
     $this->assertEquals($obj->getExternalFunding(), ExternalFundingTest::getObject());
     $this->assertEquals($obj->getCarrierAccountToken(), CarrierAccountTokenTest::getObject());
     $this->assertEquals($obj->getCarrierAccount(), CarrierAccountTest::getObject());
     $this->assertEquals($obj->getPrivateLabelCard(), PrivateLabelCardTest::getObject());
     $this->assertEquals($obj->getBilling(), BillingTest::getObject());
 }
 /**
  * @dataProvider mockProvider
  * @param CreditCard $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(CreditCardTest::getJson()));
     $result = $obj->get("creditCardId", $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }
 /**
  * @depends testSerializationDeserialization
  * @param CreditCardList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getCreditCards(), CreditCardTest::getObject());
     $this->assertEquals($obj->getCount(), 123);
     $this->assertEquals($obj->getNextId(), "TestSample");
 }