Ejemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param Faucet $obj
  */
 public function testTurnOn($obj, $mockApiContext)
 {
     $mockBlockCypherRestCall = $this->getMockBuilder('\\BlockCypher\\Transport\\BlockCypherRestCall')->disableOriginalConstructor()->getMock();
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(FaucetResponseTest::getJson()));
     /** @noinspection PhpParamsInspection */
     $result = $obj->turnOn($mockApiContext, $mockBlockCypherRestCall);
     $this->assertNotNull($result);
     $this->assertInstanceOf('\\BlockCypher\\Api\\FaucetResponse', $result);
 }