/** * 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()); }
<?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();