File tree Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 2929 ],
3030 "minimum-stability" : " dev" ,
3131 "require" : {
32- "php" : " >=5.4.0"
32+ "php" : " >=5.4.0" ,
33+ "symfony/console" : " ^3.2"
3334 },
3435 "require-dev" : {
3536 "phpunit/phpunit" : " 4.8.*"
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+ require __DIR__ . '/vendor/autoload.php ' ;
4+
5+ use Symfony \Component \Console \Application ;
6+ use JasperPHP \JasperPHPCommand ;
7+
8+ $ application = new Application ('PHPJasper ' , '1.0 ' );
9+ $ application ->add (new JasperPHPCommand ());
10+ $ application ->run ();
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace JasperPHP ;
3+
4+ use Symfony \Component \Console \Command \Command ;
5+ use Symfony \Component \Console \Input \InputInterface ;
6+ use Symfony \Component \Console \Output \OutputInterface ;
7+
8+ class JasperPHPCommand extends Command
9+ {
10+ /**
11+ *
12+ */
13+ protected function configure ()
14+ {
15+ $ this ->setName ('process ' )
16+ ->setDescription ('Description of process ' , '1.0 ' )
17+ ->setHelp ('Help of process ' );
18+ }
19+
20+ /**
21+ *
22+ */
23+ protected function execute (InputInterface $ input , OutputInterface $ output )
24+ {
25+
26+ }
27+
28+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ use PHPUnit_Framework_TestCase ;
3+
4+ class JasperPHPCommandTest extends PHPUnit_Framework_TestCase
5+ {
6+
7+ public function testExecute ()
8+ {
9+
10+ }
11+
12+ }
You can’t perform that action at this time.
0 commit comments