forked from LiveCarta/PayPal-PHP-SDK
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user