2 use PayPal\Exception\PPConnectionException;
4 * Test class for PPConnectionException.
7 class PPConnectionExceptionTest extends \PHPUnit_Framework_TestCase
10 * @var PPConnectionException
15 * Sets up the fixture, for example, opens a network connection.
16 * This method is called before a test is executed.
18 protected function setUp()
20 $this->object = new PPConnectionException('http://testURL', 'test message');
24 * Tears down the fixture, for example, closes a network connection.
25 * This method is called after a test is executed.
27 protected function tearDown()
34 public function testGetUrl()
36 $this->assertEquals('http://testURL',$this->object->getUrl());
41 public function testPPConnectionException()
43 $this->setExpectedException('PayPal\Exception\PPConnectionException');
44 throw new PPConnectionException('http://testURL','Test msg PPConnectionException');