File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,11 @@ protected function register(Parameter $param)
249249 }
250250
251251 /**
252- * unRegister a new argument/option.
252+ * unset a registered argument/option.
253253 *
254254 * @param string $name
255255 */
256- public function unRegister ($ name )
256+ public function unset ($ name )
257257 {
258258 unset($ this ->_values [$ name ], $ this ->_arguments [$ name ], $ this ->_options [$ name ]);
259259
Original file line number Diff line number Diff line change @@ -261,12 +261,12 @@ public function test_bind()
261261 $ this ->assertNull ($ c ->app ());
262262 }
263263
264- public function test_unregister ()
264+ public function test_unset ()
265265 {
266266 $ c = $ this ->newCommand ();
267267 $ this ->assertCount (3 , $ c ->allOptions ());
268268 $ this ->assertArrayHasKey ('verbosity ' , $ c ->allOptions ());
269- $ c ->unRegister ('verbosity ' );
269+ $ c ->unset ('verbosity ' );
270270 $ this ->assertCount (2 , $ c ->allOptions ());
271271 $ this ->assertArrayNotHasKey ('verbosity ' , $ c ->allOptions ());
272272 }
You can’t perform that action at this time.
0 commit comments