File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 2828
2929$ app ->singleton (
3030 Illuminate \Contracts \Console \Kernel::class,
31- LaravelZero \ Framework \Kernel ::class
31+ \ Hyde \ Foundation \ConsoleKernel ::class
3232);
3333
3434$ app ->singleton (
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Hyde \Foundation ;
6+
7+ use LaravelZero \Framework \Kernel ;
8+
9+ class ConsoleKernel extends Kernel
10+ {
11+ //
12+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Hyde \Framework \Testing \Unit ;
6+
7+ use Illuminate \Contracts \Console \Kernel ;
8+ use Hyde \Foundation \ConsoleKernel ;
9+ use Hyde \Testing \TestCase ;
10+
11+ /**
12+ * @covers \Hyde\Foundation\ConsoleKernel
13+ */
14+ class ConsoleKernelTest extends TestCase
15+ {
16+ public function testIsInstantiable ()
17+ {
18+ $ this ->assertInstanceOf (ConsoleKernel::class, app (ConsoleKernel::class));
19+ }
20+
21+ public function testClassImplementsKernelInterface ()
22+ {
23+ $ this ->assertInstanceOf (Kernel::class, app (ConsoleKernel::class));
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments