Skip to content

Commit e7757a2

Browse files
committed
fixed function name to unset
1 parent e4de321 commit e7757a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Input/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/Input/CommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)