Add tests folder to typo console coverage
- Use correct config object in Console\Typo
This commit is contained in:
parent
84ccaf50fa
commit
da56e0a541
1 changed files with 13 additions and 1 deletions
|
@ -43,7 +43,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$php_path = BaseObject::getApp()->getConfigCache()->get('config', 'php_path', 'php');
|
||||
$php_path = BaseObject::getApp()->getConfig()->get('config', 'php_path', 'php');
|
||||
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Directory: src');
|
||||
|
@ -57,6 +57,18 @@ HELP;
|
|||
}
|
||||
}
|
||||
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Directory: tests');
|
||||
}
|
||||
|
||||
$Iterator = new \RecursiveDirectoryIterator('tests');
|
||||
|
||||
foreach (new \RecursiveIteratorIterator($Iterator) as $file) {
|
||||
if (substr($file, -4) === '.php') {
|
||||
$this->checkFile($php_path, $file);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Directory: mod');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue