예제 #1
0
파일: SlimTest.php 프로젝트: rs3d/Slimplr
 /**
  * Test custom mode from getenv()
  */
 public function testGetModeFromGetEnv()
 {
     putenv('SLIM_MODE=production');
     $s = new Slim();
     $this->assertEquals('production', $s->getMode());
 }
예제 #2
0
 /**
  * Test custom mode from app settings
  */
 public function testGetModeFromSettings()
 {
     $s = new Slim(array('mode' => 'test'));
     $this->assertEquals('test', $s->getMode());
 }