Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / test / Command / ExitCommandTest.php
1 <?php
2
3 /*
4  * This file is part of Psy Shell.
5  *
6  * (c) 2012-2018 Justin Hileman
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Console\Tests\Command;
13
14 use Psy\Command\ExitCommand;
15 use Symfony\Component\Console\Tester\CommandTester;
16
17 class ExitCommandTest extends \PHPUnit\Framework\TestCase
18 {
19     /**
20      * @expectedException \Psy\Exception\BreakException
21      * @expectedExceptionMessage Goodbye
22      */
23     public function testExecute()
24     {
25         $command = new ExitCommand();
26         $tester = new CommandTester($command);
27         $tester->execute([]);
28     }
29 }