generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from tarfin-labs/WB-623-event-machine-reset-al…
…l-fakes Able to Reset All Fakes
- Loading branch information
Showing
6 changed files
with
186 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tarfinlabs\EventMachine; | ||
|
||
use Tarfinlabs\EventMachine\Behavior\InvokableBehavior; | ||
|
||
class EventMachine | ||
{ | ||
/** | ||
* Resets all fake invocations to their default state. | ||
*/ | ||
public function resetAllFakes(): void | ||
{ | ||
InvokableBehavior::resetAllFakes(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tarfinlabs\EventMachine\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
/** | ||
* The EventMachine class represents a facade for accessing the Event Machine service container. | ||
* | ||
* @method static void resetAllFakes() Resets all fake invocations to their default state. | ||
* | ||
* @see \Tarfinlabs\EventMachine\EventMachine | ||
*/ | ||
class EventMachine extends Facade | ||
{ | ||
/** | ||
* Get the service container key for the facade. | ||
*/ | ||
protected static function getFacadeAccessor(): string | ||
{ | ||
return \Tarfinlabs\EventMachine\EventMachine::class; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters