File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1717 expect ($ this ->app ->make (ExceptionNotifyManager::class)->driver ('mail ' ))
1818 ->report ('report ' )
1919 ->toBeNull ();
20- })->group (__DIR__ , __FILE__ );
20+ })->group (__DIR__ , __FILE__ )-> throws (Swift_TransportException::class) ;
Original file line number Diff line number Diff line change 9999})->group (__DIR__ , __FILE__ )->throws (\Guanguans \LaravelExceptionNotify \Exceptions \InvalidArgumentException::class);
100100
101101it ('can create custom driver ' , function (): void {
102- app (ExceptionNotifyManager::class)->extend ('foo ' , function () {
103- return new class implements Channel {
104- public function report (string $ report ): void {}
105- };
102+ app (ExceptionNotifyManager::class)->extend ('foo ' , static fn (): Channel => new class implements Channel {
103+ public function report (string $ report ): void {}
106104 });
107105
108106 expect (app (ExceptionNotifyManager::class))->driver ('foo ' )->toBeInstanceOf (Channel::class);
You can’t perform that action at this time.
0 commit comments