Skip to content

Commit

Permalink
Adding symfony/console and JasperPHPCommand skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelqueiroz committed Feb 6, 2017
1 parent 1a1125c commit 9fe5067
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0"
"php": ">=5.4.0",
"symfony/console": "^3.2"
},
"require-dev": {
"phpunit/phpunit": "4.8.*"
Expand Down
10 changes: 10 additions & 0 deletions jasper
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';

use Symfony\Component\Console\Application;
use JasperPHP\JasperPHPCommand;

$application = new Application('PHPJasper', '1.0');
$application->add(new JasperPHPCommand());
$application->run();
28 changes: 28 additions & 0 deletions src/JasperPHP/JasperPHPCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
namespace JasperPHP;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class JasperPHPCommand extends Command
{
/**
*
*/
protected function configure()
{
$this->setName('process')
->setDescription('Description of process', '1.0')
->setHelp('Help of process');
}

/**
*
*/
protected function execute(InputInterface $input, OutputInterface $output)
{

}

}
12 changes: 12 additions & 0 deletions tests/JasperPHP/JasperPHPCommandTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
use PHPUnit_Framework_TestCase;

class JasperPHPCommandTest extends PHPUnit_Framework_TestCase
{

public function testExecute()
{

}

}

0 comments on commit 9fe5067

Please sign in to comment.