/** * @dataProvider mockProvider * @param NullData $obj */ public function testCreate($obj, $mockApiContext) { $mockBlockCypherRestCall = $this->getMockBuilder('\\BlockCypher\\Transport\\BlockCypherRestCall')->disableOriginalConstructor()->getMock(); $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(self::getJson())); $result = $obj->create(array(), $mockApiContext, $mockBlockCypherRestCall); $this->assertNotNull($result); }