diff --git a/tests/Application.php b/tests/Application.php index 0a3a79c..88d0e4c 100644 --- a/tests/Application.php +++ b/tests/Application.php @@ -1,17 +1,21 @@ addAutoDiscoverySpots( + (new AutoDiscoveryDirectory(__DIR__ . '/Commands')) + ->addAutoPrefixManagers(new AutoPrefixNamespaceManager('\\jrosset\\Tests\\Commands', 'test')) + ); $this->addAutoDiscoveredCommands(); - $this->applyAutoPrefixes(); } } \ No newline at end of file diff --git a/tests/Commands/Hello.php b/tests/Commands/Hello.php new file mode 100644 index 0000000..449bc5b --- /dev/null +++ b/tests/Commands/Hello.php @@ -0,0 +1,30 @@ +writeln('Hello !'); + return Command::SUCCESS; + } +} \ No newline at end of file diff --git a/tests/run.php b/tests/run.php new file mode 100644 index 0000000..3622bfd --- /dev/null +++ b/tests/run.php @@ -0,0 +1,8 @@ +run(); \ No newline at end of file