@@ -49,7 +49,7 @@ class SimpleCliWrapperTest extends TestCase
4949 public function testGetVerbosityLevel_NoOptions ()
5050 {
5151 $ opts = [];
52- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
52+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
5353 $ this ->assertEquals (0 , $ result );
5454 }
5555
@@ -59,7 +59,7 @@ public function testGetVerbosityLevel_NoOptions()
5959 public function testGetVerbosityLevel_ShortOptionFalse ()
6060 {
6161 $ opts = ['v ' => false ];
62- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
62+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
6363 $ this ->assertEquals (0 , $ result );
6464 }
6565
@@ -69,7 +69,7 @@ public function testGetVerbosityLevel_ShortOptionFalse()
6969 public function testGetVerbosityLevel_ShortOptionOneV ()
7070 {
7171 $ opts = ['v ' => 'v ' ];
72- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
72+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
7373 $ this ->assertEquals (1 , $ result );
7474 }
7575
@@ -79,7 +79,7 @@ public function testGetVerbosityLevel_ShortOptionOneV()
7979 public function testGetVerbosityLevel_ShortOptionTwoVs ()
8080 {
8181 $ opts = ['v ' => 'vv ' ];
82- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
82+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
8383 $ this ->assertEquals (2 , $ result );
8484 }
8585
@@ -89,7 +89,7 @@ public function testGetVerbosityLevel_ShortOptionTwoVs()
8989 public function testGetVerbosityLevel_ShortOptionThreeVs ()
9090 {
9191 $ opts = ['v ' => 'vvv ' ];
92- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
92+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
9393 $ this ->assertEquals (3 , $ result );
9494 }
9595
@@ -99,7 +99,7 @@ public function testGetVerbosityLevel_ShortOptionThreeVs()
9999 public function testGetVerbosityLevel_LongOptionNumeric ()
100100 {
101101 $ opts = ['verbose ' => '3 ' ];
102- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
102+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
103103 $ this ->assertEquals (3 , $ result );
104104 }
105105
@@ -109,7 +109,7 @@ public function testGetVerbosityLevel_LongOptionNumeric()
109109 public function testGetVerbosityLevel_LongOptionZero ()
110110 {
111111 $ opts = ['verbose ' => '0 ' ];
112- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
112+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
113113 $ this ->assertEquals (0 , $ result );
114114 }
115115
@@ -119,7 +119,7 @@ public function testGetVerbosityLevel_LongOptionZero()
119119 public function testGetVerbosityLevel_LongOptionLargeNumber ()
120120 {
121121 $ opts = ['verbose ' => '10 ' ];
122- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
122+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
123123 $ this ->assertEquals (10 , $ result );
124124 }
125125
@@ -129,7 +129,7 @@ public function testGetVerbosityLevel_LongOptionLargeNumber()
129129 public function testGetVerbosityLevel_LongOptionNonNumeric ()
130130 {
131131 $ opts = ['verbose ' => 'invalid ' ];
132- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
132+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
133133 $ this ->assertEquals (-1 , $ result );
134134 }
135135
@@ -139,7 +139,7 @@ public function testGetVerbosityLevel_LongOptionNonNumeric()
139139 public function testGetVerbosityLevel_LongOptionFalse ()
140140 {
141141 $ opts = ['verbose ' => false ];
142- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
142+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
143143 $ this ->assertEquals (-1 , $ result );
144144 }
145145
@@ -149,7 +149,7 @@ public function testGetVerbosityLevel_LongOptionFalse()
149149 public function testGetVerbosityLevel_BothOptions ()
150150 {
151151 $ opts = ['v ' => 'vv ' , 'verbose ' => '5 ' ];
152- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
152+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
153153 $ this ->assertEquals (2 , $ result );
154154 }
155155
@@ -159,7 +159,7 @@ public function testGetVerbosityLevel_BothOptions()
159159 public function testGetVerbosityLevel_ShortFalseLongNumeric ()
160160 {
161161 $ opts = ['v ' => false , 'verbose ' => '3 ' ];
162- $ result = \Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
162+ $ result = \Crypt \ Console \SimpleCliWrapper::getVerbosityLevel ($ opts );
163163 $ this ->assertEquals (0 , $ result );
164164 }
165165
@@ -169,7 +169,7 @@ public function testGetVerbosityLevel_ShortFalseLongNumeric()
169169 public function testGetLogLocation_NoOptions ()
170170 {
171171 $ opts = [];
172- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
172+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
173173 $ this ->assertEquals ("" , $ result );
174174 }
175175
@@ -179,7 +179,7 @@ public function testGetLogLocation_NoOptions()
179179 public function testGetLogLocation_ShortOptionValidPath ()
180180 {
181181 $ opts = ['l ' => '/path/to/log/file ' ];
182- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
182+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
183183 $ this ->assertEquals ('/path/to/log/file ' , $ result );
184184 }
185185
@@ -189,7 +189,7 @@ public function testGetLogLocation_ShortOptionValidPath()
189189 public function testGetLogLocation_LongOptionValidPath ()
190190 {
191191 $ opts = ['log ' => '/var/log/app.log ' ];
192- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
192+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
193193 $ this ->assertEquals ('/var/log/app.log ' , $ result );
194194 }
195195
@@ -199,7 +199,7 @@ public function testGetLogLocation_LongOptionValidPath()
199199 public function testGetLogLocation_ShortOptionRelativePath ()
200200 {
201201 $ opts = ['l ' => 'logs/app.log ' ];
202- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
202+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
203203 $ this ->assertEquals ('logs/app.log ' , $ result );
204204 }
205205
@@ -209,7 +209,7 @@ public function testGetLogLocation_ShortOptionRelativePath()
209209 public function testGetLogLocation_BothOptions ()
210210 {
211211 $ opts = ['l ' => '/short/path ' , 'log ' => '/long/path ' ];
212- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
212+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
213213 $ this ->assertEquals ('/short/path ' , $ result );
214214 }
215215
@@ -219,7 +219,7 @@ public function testGetLogLocation_BothOptions()
219219 public function testGetLogLocation_ShortOptionFalse ()
220220 {
221221 $ opts = ['l ' => false ];
222- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
222+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
223223 $ this ->assertEquals (-1 , $ result );
224224 }
225225
@@ -229,7 +229,7 @@ public function testGetLogLocation_ShortOptionFalse()
229229 public function testGetLogLocation_LongOptionFalse ()
230230 {
231231 $ opts = ['log ' => false ];
232- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
232+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
233233 $ this ->assertEquals (-1 , $ result );
234234 }
235235
@@ -239,7 +239,7 @@ public function testGetLogLocation_LongOptionFalse()
239239 public function testGetLogLocation_ShortOptionInteger ()
240240 {
241241 $ opts = ['l ' => 123 ];
242- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
242+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
243243 $ this ->assertEquals (-1 , $ result );
244244 }
245245
@@ -249,7 +249,7 @@ public function testGetLogLocation_ShortOptionInteger()
249249 public function testGetLogLocation_LongOptionArray ()
250250 {
251251 $ opts = ['log ' => ['path ' ]];
252- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
252+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
253253 $ this ->assertEquals (-1 , $ result );
254254 }
255255
@@ -259,7 +259,7 @@ public function testGetLogLocation_LongOptionArray()
259259 public function testGetLogLocation_ShortFalseLongValid ()
260260 {
261261 $ opts = ['l ' => false , 'log ' => '/valid/path ' ];
262- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
262+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
263263 $ this ->assertEquals ('/valid/path ' , $ result );
264264 }
265265
@@ -269,7 +269,7 @@ public function testGetLogLocation_ShortFalseLongValid()
269269 public function testGetLogLocation_EmptyStringPath ()
270270 {
271271 $ opts = ['l ' => '' ];
272- $ result = \Console \SimpleCliWrapper::getLogLocation ($ opts );
272+ $ result = \Crypt \ Console \SimpleCliWrapper::getLogLocation ($ opts );
273273 $ this ->assertEquals ('' , $ result );
274274 }
275275}
0 commit comments