コード例 #1
0
 /**
  * @dataProvider mockProvider
  * @param MicroTXClient $obj
  * @param PHPUnit_Framework_MockObject_MockObject|ApiContext $mockApiContext
  * @param PHPUnit_Framework_MockObject_MockObject|BlockCypherRestCall $mockBlockCypherRestCall
  */
 public function testFromWif($obj, $mockApiContext, $mockBlockCypherRestCall)
 {
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(MicroTXTest::getJson()));
     /** @noinspection SpellCheckingInspection */
     $result = $obj->sendWithWif("BpouCdZ5dXbjcUDQBj8ZVYBbSPtWYDQHxuDcP48VA6Q7dZuqW4UJ", "C4MYFr4EAdqEeUKxTnPUF3d3whWcPMz1Fi", 10000, $mockApiContext, $mockBlockCypherRestCall);
     $this->assertNotNull($result);
 }