Пример #1
0
 /**
  * @dataProvider mockProvider
  * @param HDWallet $obj
  * @param $mockApiContext
  */
 public function testGenerateAddress($obj, $mockApiContext)
 {
     $mockBlockCypherRestCall = $this->getMockBuilder('\\BlockCypher\\Transport\\BlockCypherRestCall')->disableOriginalConstructor()->getMock();
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(HDWalletGenerateAddressResponseTest::getJson()));
     /** @noinspection PhpParamsInspection */
     $result = $obj->generateAddress(array(), $mockApiContext, $mockBlockCypherRestCall);
     $this->assertNotNull($result);
 }