Inheritance: extends PHPUnit_Framework_TestCase
コード例 #1
0
ファイル: WebhookTest.php プロジェクト: Roc4rdho/app
 /**
  * @dataProvider mockProvider
  * @param Webhook $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookTest::getJson()));
     $result = $obj->get("webhookId", $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }
コード例 #2
0
ファイル: WebhookListTest.php プロジェクト: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param WebhookList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getWebhooks(), WebhookTest::getObject());
 }