Exemple #1
0
 /**
  * @dataProvider mockProvider
  * @param TX $obj
  */
 public function testGetUnconfirmed($obj, $mockApiContext)
 {
     $mockBlockCypherRestCall = $this->getMockBuilder('\\BlockCypher\\Transport\\BlockCypherRestCall')->disableOriginalConstructor()->getMock();
     $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue('[' . TXTest::getJson() . ']'));
     $result = $obj->getUnconfirmed(array(), $mockApiContext, $mockBlockCypherRestCall);
     $this->assertNotNull($result);
     $this->assertEquals($result[0], TXTest::getObject());
 }