/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Foundation/Console/ClosureCommandTest.php
23 строки
596 B
Mior Muhammad Zaki
[11.x] Fixes Symfony Console 7.3 deprecations on closure command (#55888)
30 май 2025, 16:43
Не верифицирован
30 май 2025, 16:43
118cd9a
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Foundation\Console; use Illuminate\Support\Facades\Artisan; use Orchestra\Testbench\TestCase; class ClosureCommandTest extends TestCase { /** {@inheritDoc} */ #[\Override] protected function defineEnvironment($app) { Artisan::command('inspire', function () { $this->comment('We must ship. - Taylor Otwell'); })->purpose('Display an inspiring quote'); } public function testItCanRunClosureCommand() { $this->artisan('inspire')->expectsOutput('We must ship. - Taylor Otwell'); } }