Renaming Namespaces and Organizing Classes

- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
This commit is contained in:
japatel
2014-12-17 17:15:01 -06:00
parent 20038e7525
commit 29a8d8f50d
246 changed files with 1068 additions and 1057 deletions

View File

@@ -3,7 +3,7 @@
namespace PayPal\Test\Functional;
use PayPal\Auth\OAuthTokenCredential;
use PayPal\Core\PPCredentialManager;
use PayPal\Core\PayPalCredentialManager;
use PayPal\Rest\ApiContext;
class Setup
@@ -24,7 +24,7 @@ class Setup
'log.LogLevel' => 'FINE',
'validation.level' => 'warning'
));
PPCredentialManager::getInstance()->setCredentialObject(
PayPalCredentialManager::getInstance()->setCredentialObject(
new OAuthTokenCredential(
"AYSq3RDGsmBLJE-otTkBtM-jBRd1TCQwFf9RGfwddNXWz0uFU9ztymylOhRS",
"EGnHDxD_qRPdaLdZz8iCr8N7_MzF-YHPTkjs6NKYQvQSBngp4PTTVWkPZRbL"
@@ -34,12 +34,12 @@ class Setup
self::$mode = getenv('REST_MODE') ? getenv('REST_MODE') : 'mock';
if (self::$mode != 'sandbox') {
// Mock PPRest Caller if mode set to mock
$test->mockPPRestCall = $test->getMockBuilder('\PayPal\Transport\PPRestCall')
// Mock PayPalRest Caller if mode set to mock
$test->mockPayPalRestCall = $test->getMockBuilder('\PayPal\Transport\PayPalRestCall')
->disableOriginalConstructor()
->getMock();
$test->mockPPRestCall->expects($test->any())
$test->mockPayPalRestCall->expects($test->any())
->method('execute')
->will($test->returnValue(
$test->response