33namespace NotificationChannels \Interfax \Test ;
44
55use Illuminate \Notifications \Notification ;
6- use PHPUnit \Framework \Attributes \Test ;
76use Interfax \Client as InterfaxClient ;
87use Interfax \Resource as InterfaxResource ;
98use Mockery ;
@@ -36,8 +35,7 @@ public function setUp(): void
3635 $ this ->channel = new InterfaxChannel ($ this ->interfax );
3736 }
3837
39- #[Test]
40- public function it_can_send_notification_with_a_single_file ()
38+ public function test_send_notification_with_a_single_file ()
4139 {
4240 $ this ->interfax ->expects ('deliver ' )
4341 ->once ()
@@ -56,8 +54,7 @@ public function it_can_send_notification_with_a_single_file()
5654 $ this ->channel ->send (new TestNotifiable , new TestNotificationWithSingleFile );
5755 }
5856
59- #[Test]
60- public function it_can_send_notification_with_files ()
57+ public function test_send_notification_with_files ()
6158 {
6259 $ this ->interfax ->expects ('deliver ' )
6360 ->once ()
@@ -82,8 +79,7 @@ public function it_can_send_notification_with_files()
8279 $ this ->channel ->send (new TestNotifiable , new TestNotificationWithFiles );
8380 }
8481
85- #[Test]
86- public function it_can_send_notification_pdf_as_stream ()
82+ public function test_send_notification_pdf_as_stream ()
8783 {
8884 $ this ->interfax ->expects ('deliver ' )
8985 ->with (Mockery::on (function ($ output ) {
@@ -111,8 +107,7 @@ public function it_can_send_notification_pdf_as_stream()
111107 $ this ->channel ->send (new TestNotifiable , new TestNotificationAsStreamPdf );
112108 }
113109
114- #[Test]
115- public function it_can_send_notification_html_as_stream ()
110+ public function test_send_notification_html_as_stream ()
116111 {
117112 $ filename = 'test-file.html ' ;
118113 $ this ->addFile ($ filename );
@@ -145,14 +140,12 @@ public function it_can_send_notification_html_as_stream()
145140 $ this ->channel ->send (new TestNotifiable , new TestNotificationAsStreamHtml );
146141 }
147142
148- #[Test]
149- public function it_can_return_early_when_no_fax_number_provided ()
143+ public function test_return_early_when_no_fax_number_provided ()
150144 {
151145 $ this ->assertNull ($ this ->channel ->send (new TestNotifiableNotSendable , new TestNotificationWithFiles ));
152146 }
153147
154- #[Test]
155- public function it_can_refresh_the_file_response ()
148+ public function test_refresh_the_file_response ()
156149 {
157150 $ this ->resource
158151 ->expects ('refresh ' )
@@ -170,8 +163,7 @@ public function it_can_refresh_the_file_response()
170163 $ this ->channel ->send (new TestNotifiable , new TestNotificationWithRefresh );
171164 }
172165
173- #[Test]
174- public function it_can_throw_the_exception ()
166+ public function test_throw_the_exception ()
175167 {
176168 $ this ->expectException (CouldNotSendNotification::class);
177169
0 commit comments