소스 검색

tests

develop
Robin Thoni 8 년 전
부모
커밋
e20e7a364b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      tests/LuApplicationTest.php

+ 6
- 0
tests/LuApplicationTest.php 파일 보기

@@ -84,10 +84,16 @@ class LuApplicationTest extends \PHPUnit_Framework_TestCase
84 84
     {
85 85
         putenv("lu_setting_test=24");
86 86
         $this->assertSame("24", LuticateApplication::getInstance()->getSetting("test"));
87
+        putenv("lu_setting_test");
87 88
     }
88 89
 
89 90
     public function testSettings4()
90 91
     {
91 92
         $this->assertSame("defaultValue", LuticateApplication::getInstance()->getSetting("not-a-setting", "defaultValue"));
92 93
     }
94
+
95
+    public function testSettings5()
96
+    {
97
+        $this->assertSame(42, LuticateApplication::getInstance()->getSetting("test", "defaultValue"));
98
+    }
93 99
 }

Loading…
취소
저장