Inheritance: extends PHPUnit_Framework_TestCase
Ejemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param PayoutItem $obj
  */
 public function testCancel($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(PayoutItemDetailsTest::getJson()));
     $result = $obj->cancel("payoutItemId", $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }
 /**
  * @depends testSerializationDeserialization
  * @param PayoutBatch $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getBatchHeader(), PayoutBatchHeaderTest::getObject());
     $this->assertEquals($obj->getItems(), PayoutItemDetailsTest::getObject());
 }