mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-18 05:32:23 -05:00
Add UnitTestsCommand skeleton
This commit is contained in:
parent
4bfcdb912c
commit
4ec3930bcc
4
console
4
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();
|
||||
|
28
src/Poche/Command/UnitTestsCommand.php
Normal file
28
src/Poche/Command/UnitTestsCommand.php
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
@ -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__.'/..',
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user