forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -13,15 +13,17 @@ class InstallmentInfoTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* Gets Json String of Object InstallmentInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getJson()
|
||||
{
|
||||
return '{"installment_id":"TestSample","network":"TestSample","issuer":"TestSample","installment_options":' .InstallmentOptionTest::getJson() . '}';
|
||||
return '{"installment_id":"TestSample","network":"TestSample","issuer":"TestSample","installment_options":' . InstallmentOptionTest::getJson() . '}';
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets Object Instance with Json data filled in
|
||||
*
|
||||
* @return InstallmentInfo
|
||||
*/
|
||||
public static function getObject()
|
||||
@@ -32,6 +34,7 @@ class InstallmentInfoTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* Tests for Serialization and Deserialization Issues
|
||||
*
|
||||
* @return InstallmentInfo
|
||||
*/
|
||||
public function testSerializationDeserialization()
|
||||
@@ -57,4 +60,6 @@ class InstallmentInfoTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($obj->getIssuer(), "TestSample");
|
||||
$this->assertEquals($obj->getInstallmentOptions(), InstallmentOptionTest::getObject());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user