File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -79,4 +79,9 @@ public static function getFacadeRoot(): HydeKernel
7979 {
8080 return HydeKernel::getInstance ();
8181 }
82+
83+ public static function kernel (): HydeKernel
84+ {
85+ return HydeKernel::getInstance ();
86+ }
8287}
Original file line number Diff line number Diff line change @@ -307,4 +307,11 @@ public function test_can_set_source_root()
307307 Hyde::setSourceRoot ('foo ' );
308308 $ this ->assertEquals ('foo ' , Hyde::getSourceRoot ());
309309 }
310+
311+ public function test_can_access_kernel_fluently_using_the_facade ()
312+ {
313+ $ this ->assertInstanceOf (HydeKernel::class, Hyde::kernel ());
314+ $ this ->assertSame (HydeKernel::getInstance (), Hyde::kernel ());
315+ $ this ->assertSame (HydeKernel::VERSION , Hyde::kernel ()->version ());
316+ }
310317}
You can’t perform that action at this time.
0 commit comments