forked from PHPJasper/phpjasper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding symfony/console and JasperPHPCommand skeleton
- Loading branch information
1 parent
1a1125c
commit 9fe5067
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
{ | ||
|
||
} | ||
|
||
} |