Inheritance: extends PHPUnit_Framework_TestCase
Esempio n. 1
0
 /**
  * @dataProvider mockProvider
  * @param BankAccount $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(BankAccountTest::getJson()));
     $result = $obj->get("bankAccountId", $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }
Esempio n. 2
0
 /**
  * @depends testSerializationDeserialization
  * @param BankAccountsList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getBankAccounts(), BankAccountTest::getObject());
     $this->assertEquals($obj->getCount(), 123);
     $this->assertEquals($obj->getNextId(), "TestSample");
 }