Skip to content

Commit a2d7dfc

Browse files
committed
fix conflicts
2 parents a20207e + 118cd9a commit a2d7dfc

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/Illuminate/Foundation/Console/ClosureCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ class ClosureCommand extends Command
2525
*/
2626
protected $callback;
2727

28+
/**
29+
* The console command description.
30+
*
31+
* @var string
32+
*/
33+
protected $description = '';
34+
2835
/**
2936
* Create a new command instance.
3037
*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Illuminate\Tests\Integration\Foundation\Console;
4+
5+
use Illuminate\Support\Facades\Artisan;
6+
use Orchestra\Testbench\TestCase;
7+
8+
class ClosureCommandTest extends TestCase
9+
{
10+
/** {@inheritDoc} */
11+
#[\Override]
12+
protected function defineEnvironment($app)
13+
{
14+
Artisan::command('inspire', function () {
15+
$this->comment('We must ship. - Taylor Otwell');
16+
})->purpose('Display an inspiring quote');
17+
}
18+
19+
public function testItCanRunClosureCommand()
20+
{
21+
$this->artisan('inspire')->expectsOutput('We must ship. - Taylor Otwell');
22+
}
23+
}

0 commit comments

Comments
 (0)