Updated Payment APIs

- Updated SDK Models to latest Payment APIs
- Updated Unit Tests
This commit is contained in:
Jay Patel
2015-02-26 15:03:59 -06:00
parent 241d80cd17
commit 3e43f93f9b
93 changed files with 6079 additions and 1735 deletions

View File

@@ -18,7 +18,7 @@ class PhoneTest extends \PHPUnit_Framework_TestCase
*/
public static function getJson()
{
return '{"country_code":"TestSample","national_number":"TestSample"}';
return '{"country_code":"TestSample","national_number":"TestSample","extension":"TestSample"}';
}
/**
@@ -41,6 +41,7 @@ class PhoneTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($obj);
$this->assertNotNull($obj->getCountryCode());
$this->assertNotNull($obj->getNationalNumber());
$this->assertNotNull($obj->getExtension());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}
@@ -53,6 +54,7 @@ class PhoneTest extends \PHPUnit_Framework_TestCase
{
$this->assertEquals($obj->getCountryCode(), "TestSample");
$this->assertEquals($obj->getNationalNumber(), "TestSample");
$this->assertEquals($obj->getExtension(), "TestSample");
}
}