コード例 #1
0
 /**
  * Test whether functions in config works
  */
 public function testStartFunctions()
 {
     Environment::configure('dev2', ['is_bool' => false], [], null);
     Environment::start(null, 'staging');
     $this->assertEquals('dev2', Environment::is());
 }
コード例 #2
0
<?php

use Josegonzalez\Environments\Environment;
include dirname(__FILE__) . DS . 'environments' . DS . 'production.php';
include dirname(__FILE__) . DS . 'environments' . DS . 'staging.php';
include dirname(__FILE__) . DS . 'environments' . DS . 'development.php';
// run
Environment::start();