/** * @dataProvider mockProvider * @param PaymentForwardClient $obj * @param PHPUnit_Framework_MockObject_MockObject|ApiContext $mockApiContext * @param PHPUnit_Framework_MockObject_MockObject|BlockCypherRestCall $mockBlockCypherRestCall */ public function testDelete($obj, $mockApiContext, $mockBlockCypherRestCall) { $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(true)); $result = $obj->delete(PaymentForwardTest::getObject()->getId(), $mockApiContext, $mockBlockCypherRestCall); $this->assertNotNull($result); }