/** * @dataProvider mockProvider * @param VerifyWebhookSignature $obj */ public function testPost($obj, $mockApiContext) { $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock(); $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(VerifyWebhookSignatureResponseTest::getJson())); $result = $obj->post($mockApiContext, $mockPPRestCall); $this->assertNotNull($result); }