7ed7c5a9eae92fe605388a7d891bae873251edb6
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 use PayPal\Exception\PPInvalidCredentialException;
3 /**
4  * Test class for PPInvalidCredentialException.
5  *
6  */
7 class PPInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
8 {
9     /**
10      * @var PPInvalidCredentialException
11      */
12     protected $object;
13
14     /**
15      * Sets up the fixture, for example, opens a network connection.
16      * This method is called before a test is executed.
17      */
18     protected function setUp()
19     {
20         $this->object = new PPInvalidCredentialException;
21     }
22
23     /**
24      * Tears down the fixture, for example, closes a network connection.
25      * This method is called after a test is executed.
26      */
27     protected function tearDown()
28     {
29     }
30
31     /**
32      * @test
33      */
34     public function testErrorMessage()
35     {
36       $msg = $this->object->errorMessage();
37       $this->assertContains('Error on line', $msg);
38     }
39 }
40 ?>