Skip to content

Commit af99009

Browse files
committed
Move unit tests in to the tests/ directory
1 parent b8ccf0e commit af99009

File tree

105 files changed

+33
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+33
-22
lines changed

README.md

+28-18

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"autoload": {
2727
"classmap": [
28-
"src/"
28+
"src/",
29+
"tests/"
2930
]
3031
}
3132
}

src/Phpbb/TranslationValidator/Command/ValidateCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ protected function configure()
3030
->addOption('package-dir', null, InputOption::VALUE_OPTIONAL, 'The path to the directory with the language packages', null)
3131
->addOption('language-dir', null, InputOption::VALUE_OPTIONAL, 'The path to the directory with the language folders', null)
3232
->addOption('debug', null, InputOption::VALUE_NONE, 'Run in debug')
33-
->addOption('display-notices', 'dn', InputOption::VALUE_NONE, 'Display notices in report')
34-
->addOption('safe-mode', 'sm', InputOption::VALUE_NONE, 'Run in web safe mode to parse files instead of including them')
33+
->addOption('display-notices', null, InputOption::VALUE_NONE, 'Display notices in report')
34+
->addOption('safe-mode', 's', InputOption::VALUE_NONE, 'Run in web safe mode to parse files instead of including them')
3535
;
3636
}
3737

src/Phpbb/TranslationValidator/Validator/ValidatorRunner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public static function arrayParser($file)
277277
* @param string $relativePath
278278
* @return array
279279
*/
280-
public static function langParser($filePath, $relativePath = './')
280+
public static function langParser($filePath, $relativePath = '')
281281
{
282282
$lang = [];
283283
$parsed = self::arrayParser($relativePath . $filePath);

0 commit comments

Comments
 (0)