forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -13,15 +13,17 @@ class PaymentHistoryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* Gets Json String of Object PaymentHistory
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getJson()
|
||||
{
|
||||
return '{"payments":' .PaymentTest::getJson() . ',"count":123,"next_id":"TestSample"}';
|
||||
return '{"payments":' . PaymentTest::getJson() . ',"count":123,"next_id":"TestSample"}';
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets Object Instance with Json data filled in
|
||||
*
|
||||
* @return PaymentHistory
|
||||
*/
|
||||
public static function getObject()
|
||||
@@ -32,6 +34,7 @@ class PaymentHistoryTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* Tests for Serialization and Deserialization Issues
|
||||
*
|
||||
* @return PaymentHistory
|
||||
*/
|
||||
public function testSerializationDeserialization()
|
||||
@@ -55,4 +58,6 @@ class PaymentHistoryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($obj->getCount(), 123);
|
||||
$this->assertEquals($obj->getNextId(), "TestSample");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user