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