/** * Test custom mode from getenv() */ public function testGetModeFromGetEnv() { putenv('SLIM_MODE=production'); $s = new Slim(); $this->assertEquals('production', $s->getMode()); }
/** * Test custom mode from app settings */ public function testGetModeFromSettings() { $s = new Slim(array('mode' => 'test')); $this->assertEquals('test', $s->getMode()); }