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