2 use PayPal\Exception\PPMissingCredentialException;
5 * Test class for PPMissingCredentialException.
8 class PPMissingCredentialExceptionTest extends \PHPUnit_Framework_TestCase
11 * @var PPMissingCredentialException
16 * Sets up the fixture, for example, opens a network connection.
17 * This method is called before a test is executed.
19 protected function setUp()
21 $this->object = new PPMissingCredentialException;
25 * Tears down the fixture, for example, closes a network connection.
26 * This method is called after a test is executed.
28 protected function tearDown()
35 public function testErrorMessage()
37 $msg = $this->object->errorMessage();
38 $this->assertContains('Error on line', $msg);