pin_guide_ms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
372 B

3 years ago
  1. --TEST--
  2. SaltFish\Config test
  3. @version 160103:1
  4. --FILE--
  5. <?php
  6. require(dirname(__FILE__).'/../../src/protected/lib/base/AutoRequire.php');
  7. require(dirname(__FILE__).'/../../src/protected/lib/base/Config.php');
  8. $main = array(
  9. 'database' => 1,
  10. );
  11. SaltFish\Config::importMainConfig($main);
  12. $db = SaltFish\Config::get('database');
  13. var_dump($db);
  14. ?>
  15. --EXPECT--
  16. int(1)