Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

102 lines (89 sloc) 3.477 kb
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* PHPUnit AllTests suite for the Payment_PayPal_SOAP package.
*
* These tests require the PHPUnit package to be installed. PHPUnit is
* installable using PEAR. See the
* {@link http://www.phpunit.de/manual/current/en/index.html manual}
* for detailed installation instructions.
*
* This test suite follows the PEAR AllTests conventions as documented at
* {@link http://cvs.php.net/viewvc.cgi/pear/AllTests.php?view=markup}.
*
* Note:
*
* These tests require a private API key and/or local certificate from PayPal.
* Enter your API key and certificate details in config.php to run these
* tests. If config.php is missing, these tests will refusse to run. A sample
* configuration is provided in the file config.php.dist.
*
* LICENSE:
*
* Copyright (c) 2008-2009 silverorange
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @category Payment
* @package Payment_PayPal_SOAP
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2008-2009 silverorange
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version CVS: $Id$
* @link http://pear.php.net/package/Payment_PayPal_SOAP
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Payment_PayPal_SOAP_AllTests::main');
}
require_once dirname(__FILE__) . '/ExpressCheckout.php';
require_once dirname(__FILE__) . '/Debug.php';
require_once dirname(__FILE__) . '/Client.php';
/**
* AllTests suite testing Payment_PayPal_SOAP
*
* @category Payment
* @package Payment_PayPal_SOAP
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2008 silverorange
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://pear.php.net/package/Payment_PayPal_SOAP
*/
class Payment_PayPal_SOAP_AllTests
{
// {{{ main()
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
// }}}
// {{{ suite()
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Payment_PayPal_SOAP Tests');
$suite->addTestSuite('ExpressCheckout');
$suite->addTestSuite('Debug');
$suite->addTestSuite('Client');
return $suite;
}
// }}}
}
if (PHPUnit_MAIN_METHOD == 'Payment_PayPal_SOAP_AllTests::main') {
Payment_PayPal_SOAP_AllTests::main();
}
?>
Jump to Line
Something went wrong with that request. Please try again.