public function testIniConfig() { $config = new Google_Config(__DIR__ . "/testdata/test.ini"); $this->assertEquals('My Test application', $config->getApplicationName()); $this->assertEquals('gjfiwnGinpena3', $config->getClassConfig('Google_Auth_OAuth2', 'client_secret')); $this->assertInternalType('array', $config->getClassConfig('Google_IO_Abstract')); $this->assertEquals(100, $config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds')); }
/** * @return string the name of the application */ public function getApplicationName() { return $this->config->getApplicationName(); }
public function testIniConfig() { $config = new Google_Config(__DIR__ . "/testdata/test.ini"); $this->assertEquals('My Test application', $config->getApplicationName()); $this->assertEquals('gjfiwnGinpena3', $config->getClassConfig('Google_Auth_OAuth2', 'client_secret')); }