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

@@ -1,14 +1,14 @@
<?php
use PayPal\Exception\PPConfigurationException;
use PayPal\Exception\PayPalConfigurationException;
/**
* Test class for PPConfigurationException.
* Test class for PayPalConfigurationException.
*
*/
class PPConfigurationExceptionTest extends \PHPUnit_Framework_TestCase
class PayPalConfigurationExceptionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var PPConfigurationException
* @var PayPalConfigurationException
*/
protected $object;
@@ -18,7 +18,7 @@ class PPConfigurationExceptionTest extends \PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PPConfigurationException('Test PPConfigurationException');
$this->object = new PayPalConfigurationException('Test PayPalConfigurationException');
}
/**
@@ -31,7 +31,7 @@ class PPConfigurationExceptionTest extends \PHPUnit_Framework_TestCase
public function testPPConfigurationException()
{
$this->assertEquals('Test PPConfigurationException', $this->object->getMessage());
$this->assertEquals('Test PayPalConfigurationException', $this->object->getMessage());
}
}

View File

@@ -1,14 +1,14 @@
<?php
use PayPal\Exception\PPConnectionException;
use PayPal\Exception\PayPalConnectionException;
/**
* Test class for PPConnectionException.
* Test class for PayPalConnectionException.
*
*/
class PPConnectionExceptionTest extends \PHPUnit_Framework_TestCase
class PayPalConnectionExceptionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var PPConnectionException
* @var PayPalConnectionException
*/
protected $object;
@@ -18,7 +18,7 @@ class PPConnectionExceptionTest extends \PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PPConnectionException('http://testURL', 'test message');
$this->object = new PayPalConnectionException('http://testURL', 'test message');
$this->object->setData('response payload for connection');
}

View File

@@ -1,14 +1,14 @@
<?php
use PayPal\Exception\PPInvalidCredentialException;
use PayPal\Exception\PayPalInvalidCredentialException;
/**
* Test class for PPInvalidCredentialException.
* Test class for PayPalInvalidCredentialException.
*
*/
class PPInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
class PayPalInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var PPInvalidCredentialException
* @var PayPalInvalidCredentialException
*/
protected $object;
@@ -18,7 +18,7 @@ class PPInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PPInvalidCredentialException;
$this->object = new PayPalInvalidCredentialException;
}
/**

View File

@@ -1,14 +1,14 @@
<?php
use PayPal\Exception\PPMissingCredentialException;
use PayPal\Exception\PayPalMissingCredentialException;
/**
* Test class for PPMissingCredentialException.
* Test class for PayPalMissingCredentialException.
*
*/
class PPMissingCredentialExceptionTest extends \PHPUnit_Framework_TestCase
class PayPalMissingCredentialExceptionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var PPMissingCredentialException
* @var PayPalMissingCredentialException
*/
protected $object;
@@ -18,7 +18,7 @@ class PPMissingCredentialExceptionTest extends \PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PPMissingCredentialException;
$this->object = new PayPalMissingCredentialException;
}
/**