diff --git a/src/InteractsWithMailer.php b/src/InteractsWithMailer.php index b0ed0d5..9a8fc24 100644 --- a/src/InteractsWithMailer.php +++ b/src/InteractsWithMailer.php @@ -11,6 +11,8 @@ namespace Zenstruck\Mailer\Test; +use PHPUnit\Framework\Attributes\After; +use PHPUnit\Framework\Attributes\Before; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** @@ -22,6 +24,7 @@ trait InteractsWithMailer * @internal * @before */ + #[Before] final protected static function _startTestMailer(): void { TestMailer::start(); @@ -31,6 +34,7 @@ final protected static function _startTestMailer(): void * @internal * @after */ + #[Before] final protected static function _stopTestMailer(): void { TestMailer::stop();