From 4ec3930bcc55053709e221168d72842b91f20b5f Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Thu, 21 Nov 2013 14:51:07 +0100 Subject: [PATCH] Add UnitTestsCommand skeleton --- console | 4 +++- src/Poche/Command/UnitTestsCommand.php | 28 ++++++++++++++++++++++++++ src/app.php | 5 +++-- 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 src/Poche/Command/UnitTestsCommand.php diff --git a/console b/console index 6467aa0..9f3bf39 100755 --- a/console +++ b/console @@ -7,4 +7,6 @@ require_once __DIR__.'/src/app.php'; $console = $app['console']; -echo "Hi there"; +$console->add(new Poche\Command\UnitTestsCommand()); + +$console->run(); diff --git a/src/Poche/Command/UnitTestsCommand.php b/src/Poche/Command/UnitTestsCommand.php new file mode 100644 index 0000000..28daba2 --- /dev/null +++ b/src/Poche/Command/UnitTestsCommand.php @@ -0,0 +1,28 @@ +setName('tests:units') + ->setDescription('Launches units tests with Atoum') + ; + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + } +} diff --git a/src/app.php b/src/app.php index b6052b0..6099b13 100644 --- a/src/app.php +++ b/src/app.php @@ -8,7 +8,8 @@ $app->register(new Silex\Provider\TwigServiceProvider(), array( )); $app->register(new ConsoleServiceProvider(), [ - 'console.name' => 'Poche', - 'console.version' => '1.0.0', + 'console.name' => 'Poche console', + 'console.version' => '0.1', 'console.project_directory' => __DIR__.'/..', ]); +