2 use PayPal\Exception\PPInvalidCredentialException;
4 * Test class for PPInvalidCredentialException.
7 class PPInvalidCredentialExceptionTest extends \PHPUnit_Framework_TestCase
10 * @var PPInvalidCredentialException
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 PPInvalidCredentialException;
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 testErrorMessage()
36 $msg = $this->object->errorMessage();
37 $this->assertContains('Error on line', $msg);