1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00

Add UnitTestsCommand skeleton

This commit is contained in:
Vincent Jousse 2013-11-21 14:51:07 +01:00
parent 4bfcdb912c
commit 4ec3930bcc
3 changed files with 34 additions and 3 deletions

View File

@ -7,4 +7,6 @@ require_once __DIR__.'/src/app.php';
$console = $app['console']; $console = $app['console'];
echo "Hi there"; $console->add(new Poche\Command\UnitTestsCommand());
$console->run();

View File

@ -0,0 +1,28 @@
<?php
namespace Poche\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Knp\Command\Command as BaseCommand;
/**
* Application aware command
*
* Provide a silex application in CLI context.
*/
class UnitTestsCommand extends BaseCommand
{
protected function configure()
{
$this
->setName('tests:units')
->setDescription('Launches units tests with Atoum')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
}
}

View File

@ -8,7 +8,8 @@ $app->register(new Silex\Provider\TwigServiceProvider(), array(
)); ));
$app->register(new ConsoleServiceProvider(), [ $app->register(new ConsoleServiceProvider(), [
'console.name' => 'Poche', 'console.name' => 'Poche console',
'console.version' => '1.0.0', 'console.version' => '0.1',
'console.project_directory' => __DIR__.'/..', 'console.project_directory' => __DIR__.'/..',
]); ]);