Skip to content

Commit

Permalink
Event::trigger no longer throws exception, remove from test
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed Jan 6, 2025
1 parent fc750af commit 921ade3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/Traits/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ protected function unwatch(string $event): static
}


/**
* @throws InvalidStateException
*/
protected function trigger(string $event, mixed ...$args): void
{
$event = Format::kebabCase($event);
Expand Down
6 changes: 0 additions & 6 deletions tests/Traits/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ public function __construct() {}
'Event "%w%" is not being watched.',
);

Assert::exception(
fn() => $eventTest->event(),
InvalidStateException::class,
'Event "%w%" is not being watched.',
);

Assert::false($eventTest->triggered);
}

Expand Down

0 comments on commit 921ade3

Please sign in to comment.