X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Ftests%2Fresolver%2Fcommand%2Fconsole%2Fclass_TestsConsoleCommandResolver.php;h=7220e3e0165b058127c010162406326981958031;hp=dab091ea5f1094cfc07d3764418db16e8e2e7a9f;hb=868c877607670760eb36e63ebeb1a04237907be9;hpb=dac90dee37db3dcdb64eba38b351df593f4e2bdb diff --git a/framework/main/tests/resolver/command/console/class_TestsConsoleCommandResolver.php b/framework/main/tests/resolver/command/console/class_TestsConsoleCommandResolver.php index dab091ea..7220e3e0 100644 --- a/framework/main/tests/resolver/command/console/class_TestsConsoleCommandResolver.php +++ b/framework/main/tests/resolver/command/console/class_TestsConsoleCommandResolver.php @@ -1,13 +1,14 @@ isCommandValid('CoreFramework\Tests\Command', $commandName) === false) { + throw new InvalidArgumentException('Parameter "commandName" is empty'); + } elseif ($resolverInstance->isCommandValid('Org\Mxchange\CoreFramework\Tests\Command', $commandName) === false) { // Invalid command found throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } - // Set namespace and application instance - $resolverInstance->setNamespace('CoreFramework\Tests\Command'); - $resolverInstance->setApplicationInstance($applicationInstance); + // Set namespace for command + $resolverInstance->setNamespace('Org\Mxchange\CoreFramework\Tests\Command'); + $resolverInstance->setCommandName($commandName); // Return the prepared instance return $resolverInstance;