4 * This file is part of Psy Shell.
6 * (c) 2012-2018 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Tests\Command;
14 use Psy\Command\ExitCommand;
15 use Symfony\Component\Console\Tester\CommandTester;
17 class ExitCommandTest extends \PHPUnit\Framework\TestCase
20 * @expectedException \Psy\Exception\BreakException
21 * @expectedExceptionMessage Goodbye
23 public function testExecute()
25 $command = new ExitCommand();
26 $tester = new CommandTester($command);