Enabled EC Parameters support

- Updated Api to enabled EC Parameters
- Updated Tests
- Updated Logging Manager
- Added a feature to do validation on accessors.
This commit is contained in:
japatel
2014-10-09 11:30:12 -05:00
parent 459293838e
commit 61a52e4623
99 changed files with 9148 additions and 3609 deletions

View File

@@ -1,5 +1,6 @@
<?php
use PayPal\Exception\PPConfigurationException;
/**
* Test class for PPConfigurationException.
*
@@ -27,9 +28,11 @@ class PPConfigurationExceptionTest extends \PHPUnit_Framework_TestCase
protected function tearDown()
{
}
public function testPPConfigurationException()
{
$this->assertEquals('Test PPConfigurationException', $this->object->getMessage());
$this->assertEquals('Test PPConfigurationException', $this->object->getMessage());
}
}
?>

View File

@@ -1,5 +1,6 @@
<?php
use PayPal\Exception\PPConnectionException;
/**
* Test class for PPConnectionException.
*
@@ -34,15 +35,16 @@ class PPConnectionExceptionTest extends \PHPUnit_Framework_TestCase
*/
public function testGetUrl()
{
$this->assertEquals('http://testURL', $this->object->getUrl());
$this->assertEquals('http://testURL', $this->object->getUrl());
}
/**
* @test
*/
public function testGetData()
public function testGetData()
{
$this->assertEquals('response payload for connection', $this->object->getData());
$this->assertEquals('response payload for connection', $this->object->getData());
}
}
?>

View File

@@ -1,5 +1,6 @@
<?php
use PayPal\Exception\PPInvalidCredentialException;
/**
* Test class for PPInvalidCredentialException.
*
@@ -33,8 +34,9 @@ class PPInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
*/
public function testErrorMessage()
{
$msg = $this->object->errorMessage();
$this->assertContains('Error on line', $msg);
$msg = $this->object->errorMessage();
$this->assertContains('Error on line', $msg);
}
}
?>

View File

@@ -34,8 +34,9 @@ class PPMissingCredentialExceptionTest extends \PHPUnit_Framework_TestCase
*/
public function testErrorMessage()
{
$msg = $this->object->errorMessage();
$this->assertContains('Error on line', $msg);
$msg = $this->object->errorMessage();
$this->assertContains('Error on line', $msg);
}
}
?>