Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Console] added rendering previous exceptions
- Loading branch information
Showing
4 changed files
with
93 additions
and
40 deletions.
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
25 changes: 25 additions & 0 deletions
25
tests/Symfony/Tests/Component/Console/Fixtures/Foo3Command.php
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,25 @@ | ||
<?php | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
class Foo3Command extends Command | ||
{ | ||
protected function configure() | ||
{ | ||
$this | ||
->setName('foo3:bar') | ||
->setDescription('The foo3:bar command') | ||
; | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
try { | ||
throw new \Exception("First exception"); | ||
} catch (\Exception $e) { | ||
throw new \Exception("Second exception", 0, $e); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/Symfony/Tests/Component/Console/Fixtures/application_renderexception3.txt
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,19 @@ | ||
|
||
|
||
|
||
[Exception] | ||
Second exception | ||
|
||
|
||
|
||
|
||
|
||
|
||
[Exception] | ||
First exception | ||
|
||
|
||
|
||
foo3:bar [-h|--help] [-q|--quiet] [-v|--verbose] [-V|--version] [-a|--ansi] [-n|--no-interaction] command | ||
|
||
|