コード例 #1
0
ファイル: IniTest.php プロジェクト: sp4ceb4r/better-ini
 public function test_hyphenated_sections()
 {
     $config = new Ini(__DIR__ . '/../resources/hyphens.ini');
     $this->assertCount(2, $config->get());
     $this->assertEquals(['key' => 'this'], $config->get('section'));
     $this->assertEquals(['key' => 'that'], $config->get('section-two'));
     $this->assertEquals('this', $config->get('section.key'));
     $this->assertEquals('that', $config->get('section-two.key'));
 }
コード例 #2
0
 public function __construct()
 {
     $ini = new Ini(__DIR__ . '/config.test.ini');
     $this->client = new GnipRules($ini->get('gnip.username'), $ini->get('gnip.password'), $ini->get('gnip.account_name'), 'twitter', $ini->get('gnip.stream_label'));
     parent::__construct();
 }