Hopefully making the tests to work
This commit is contained in:
parent
4e6dc34d6e
commit
540ddb9265
5 changed files with 82 additions and 83 deletions
|
@ -87,6 +87,17 @@ class Arguments
|
|||
return $this->argc;
|
||||
}
|
||||
|
||||
public function setArgv(array $argv)
|
||||
{
|
||||
$this->argv = $argv;
|
||||
$this->argc = count($argv);
|
||||
}
|
||||
|
||||
public function setArgc(int $argc)
|
||||
{
|
||||
$this->argc = $argc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of a argv key
|
||||
* @todo there are a lot of $a->argv usages in combination with ?? which can be replaced with this method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue