/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Console/Tests/Command/SingleCommandApplicationTest.php
34 строки
969 B
Roy de Vos Burchart
Code style change in `@PER-CS2.0` affecting `@Symfony` (parentheses for anonymous classes)
06 авг 2024, 13:13
06 авг 2024, 13:13
506e0dd
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Tests\Command; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\SingleCommandApplication; use Symfony\Component\Console\Tester\CommandTester; class SingleCommandApplicationTest extends TestCase { public function testRun() { $command = new class extends SingleCommandApplication { protected function execute(InputInterface $input, OutputInterface $output): int { return 0; } }; $command->setAutoExit(false); $this->assertSame(0, (new CommandTester($command))->execute([])); } }