Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (72 sloc) 1.735 kB
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
require_once dirname(__FILE__) . '/TestCase.php';
/**
* Tests instantiation of the SOAP client
*
* @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
*/
class Client extends Payment_PayPal_SOAP_TestCase
{
// {{{ testNoUsername()
/**
* @expectedException InvalidArgumentException
*/
public function testNoUsername()
{
$options = array(
'password' => 'foo',
'signature' => 'bar'
);
$client = new Payment_PayPal_SOAP($options);
}
// }}}
// {{{ testNoPassword()
/**
* @expectedException InvalidArgumentException
*/
public function testNoPassword()
{
$options = array(
'username' => 'foo',
'signature' => 'bar'
);
$client = new Payment_PayPal_SOAP($options);
}
// }}}
// {{{ testNoCredentials()
/**
* @expectedException InvalidArgumentException
*/
public function testNoCredentials()
{
$options = array(
'username' => 'foo',
'password' => 'bar'
);
$client = new Payment_PayPal_SOAP($options);
}
// }}}
// {{{ testBadMode()
/**
* @expectedException Payment_PayPal_SOAP_InvalidModeException
*/
public function testBadMode()
{
$options = array(
'username' => 'foo',
'password' => 'bar',
'signature' => 'baz',
'mode' => 'test'
);
$client = new Payment_PayPal_SOAP($options);
}
// }}}
}
?>
Jump to Line
Something went wrong with that request. Please try again.