Skip to content

Commit 31b57d4

Browse files
committed
fix: travis
1 parent 2071627 commit 31b57d4

File tree

2 files changed

+27
-46
lines changed

2 files changed

+27
-46
lines changed

Tests/Fixtures/MyExceptionCommand.php

100644100755
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,34 @@
22

33
namespace SymfonyRollbarBundle\Tests\Fixtures;
44

5+
use Symfony\Component\Console\Input\InputInterface;
6+
use Symfony\Component\Console\Output\OutputInterface;
57

6-
class MyExceptionCommand
8+
class MyExceptionCommand extends \SymfonyRollbarBundle\Command\AbstractCommand
79
{
10+
protected static $defaultName = 'rollbar:exception';
811

12+
/**
13+
* @inheritdoc
14+
*/
15+
protected function configure()
16+
{
17+
parent::configure();
18+
19+
$this
20+
->setName(static::$defaultName)
21+
->setDescription('Trigger exception.');
22+
}
23+
24+
/**
25+
* @param \Symfony\Component\Console\Input\InputInterface $input
26+
* @param \Symfony\Component\Console\Output\OutputInterface $output
27+
*
28+
* @return int|null|void
29+
* @throws \Exception
30+
*/
31+
protected function execute(InputInterface $input, OutputInterface $output)
32+
{
33+
throw new \Exception('This is console exception');
34+
}
935
}

phpunit.xml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)