コード例 #1
0
 /**
  * @dataProvider mockProvider
  * @param PaymentForwardClient $obj
  * @param PHPUnit_Framework_MockObject_MockObject|ApiContext $mockApiContext
  * @param PHPUnit_Framework_MockObject_MockObject|BlockCypherRestCall $mockBlockCypherRestCall
  */
 public function testGetForwardingAddress($obj, $mockApiContext, $mockBlockCypherRestCall)
 {
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(PaymentForwardTest::getJson()));
     $result = $obj->getForwardingAddress(PaymentForwardTest::getObject()->getId(), array(), $mockApiContext, $mockBlockCypherRestCall);
     $this->assertNotNull($result);
 }