2 use PayPal\Core\PPConfigManager;
4 * Test class for PPConfigManager.
7 class PPConfigManagerTest extends \PHPUnit_Framework_TestCase
10 * @var PPConfigManager
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 = PPConfigManager::getInstance();
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()
36 public function testGetInstance()
38 $instance = $this->object->getInstance();
39 $this->assertTrue($instance instanceof PPConfigManager);
45 public function testGetIniPrefix()
47 $ret = $this->object->getIniPrefix();
48 $this->assertContains('acct1', $ret);
49 $this->assertEquals(sizeof($ret), 2);
51 $ret = $this->object->getIniPrefix('jb-us-seller_api1.paypal.com');
52 $this->assertEquals('acct1', $ret);