Mercurial > hg > isophonics-drupal-site
annotate vendor/psy/psysh/test/Command/ExitCommandTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | c2387f117808 |
children |
rev | line source |
---|---|
Chris@16 | 1 <?php |
Chris@16 | 2 |
Chris@16 | 3 /* |
Chris@16 | 4 * This file is part of Psy Shell. |
Chris@16 | 5 * |
Chris@16 | 6 * (c) 2012-2018 Justin Hileman |
Chris@16 | 7 * |
Chris@16 | 8 * For the full copyright and license information, please view the LICENSE |
Chris@16 | 9 * file that was distributed with this source code. |
Chris@16 | 10 */ |
Chris@16 | 11 |
Chris@16 | 12 namespace Symfony\Component\Console\Tests\Command; |
Chris@16 | 13 |
Chris@16 | 14 use Psy\Command\ExitCommand; |
Chris@16 | 15 use Symfony\Component\Console\Tester\CommandTester; |
Chris@16 | 16 |
Chris@16 | 17 class ExitCommandTest extends \PHPUnit\Framework\TestCase |
Chris@16 | 18 { |
Chris@16 | 19 /** |
Chris@16 | 20 * @expectedException \Psy\Exception\BreakException |
Chris@16 | 21 * @expectedExceptionMessage Goodbye |
Chris@16 | 22 */ |
Chris@16 | 23 public function testExecute() |
Chris@16 | 24 { |
Chris@16 | 25 $command = new ExitCommand(); |
Chris@16 | 26 $tester = new CommandTester($command); |
Chris@16 | 27 $tester->execute([]); |
Chris@16 | 28 } |
Chris@16 | 29 } |