PHP Class PayPal\Test\Api\PaymentTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getJson ( ) : string Gets Json String of Object Payment
getObject ( ) : Payment Gets Object Instance with Json data filled in
mockProvider ( )
testCreate ( Payment $obj, $mockApiContext )
testExecute ( Payment $obj, $mockApiContext )
testGet ( Payment $obj, $mockApiContext )
testGetters ( Payment $obj )
testList ( Payment $obj, $mockApiContext )
testSerializationDeserialization ( ) : Payment Tests for Serialization and Deserialization Issues
testUpdate ( Payment $obj, $mockApiContext )

Method Details

getJson() public static method

Gets Json String of Object Payment
public static getJson ( ) : string
return string

getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : Payment
return PayPal\Api\Payment

mockProvider() public method

public mockProvider ( )

testCreate() public method

public testCreate ( Payment $obj, $mockApiContext )
$obj PayPal\Api\Payment

testExecute() public method

public testExecute ( Payment $obj, $mockApiContext )
$obj PayPal\Api\Payment

testGet() public method

public testGet ( Payment $obj, $mockApiContext )
$obj PayPal\Api\Payment

testGetters() public method

public testGetters ( Payment $obj )
$obj PayPal\Api\Payment

testList() public method

public testList ( Payment $obj, $mockApiContext )
$obj PayPal\Api\Payment

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Payment
return PayPal\Api\Payment

testUpdate() public method

public testUpdate ( Payment $obj, $mockApiContext )
$obj PayPal\Api\Payment