/**
  * @return TXConfidence
  */
 public function testGet()
 {
     $request = $this->operation['response']['body'];
     $txConfidence = new TXConfidence($request);
     $result = TXConfidence::get($txConfidence->getTxhash(), array(), $this->apiContext, $this->mockBlockCypherRestCall);
     $this->assertNotNull($result);
     $this->assertInstanceOf('\\BlockCypher\\Api\\TXConfidence', $result);
     // Assert only immutable values.
     $this->assertEquals($txConfidence->getTxhash(), $result->getTxhash());
     return $result;
 }
 /**
  * @dataProvider mockProviderGetParamsValidation
  * @param TXConfidence $obj
  * @param $mockApiContext
  * @param $params
  * @expectedException \InvalidArgumentException
  */
 public function testGetParamsValidationForParams($obj, $mockApiContext, $params)
 {
     $mockBlockCypherRestCall = $this->getMockBuilder('\\BlockCypher\\Transport\\BlockCypherRestCall')->disableOriginalConstructor()->getMock();
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(TXConfidenceTest::getJson()));
     /** @noinspection PhpUndefinedVariableInspection */
     /** @noinspection PhpParamsInspection */
     $obj->get("f854aebae95150b379cc1187d848d58225f3c4157fe992bcd166f58bd5063449", $params, $mockApiContext, $mockBlockCypherRestCall);
 }