1010class ResendTest extends Base
1111{
1212 private Resend $ sender ;
13-
1413 private string $ testEmail ;
1514
1615 protected function setUp (): void
1716 {
1817 parent ::setUp ();
19- $ this ->requireEnv (['RESEND_API_KEY ' , 'RESEND_TEST_EMAIL ' ]);
20-
2118 $ key = \getenv ('RESEND_API_KEY ' );
2219 $ this ->sender = new Resend ($ key );
2320 $ this ->testEmail = \getenv ('RESEND_TEST_EMAIL ' );
2421
2522 sleep (2 );
2623 }
2724
28- public function test_send_email (): void
25+ public function testSendEmail (): void
2926 {
3027 $ to = $ this ->testEmail ;
3128 $ subject = 'Test Subject ' ;
@@ -49,7 +46,7 @@ public function test_send_email(): void
4946 $ this ->assertResponse ($ response );
5047 }
5148
52- public function test_send_email_with_html (): void
49+ public function testSendEmailWithHtml (): void
5350 {
5451 $ to = $ this ->testEmail ;
5552 $ subject = 'Test HTML Subject ' ;
@@ -70,7 +67,7 @@ public function test_send_email_with_html(): void
7067 $ this ->assertResponse ($ response );
7168 }
7269
73- public function test_send_email_with_reply_to (): void
70+ public function testSendEmailWithReplyTo (): void
7471 {
7572 $ to = $ this ->testEmail ;
7673 $ subject = 'Test Reply-To Subject ' ;
@@ -93,7 +90,7 @@ public function test_send_email_with_reply_to(): void
9390 $ this ->assertResponse ($ response );
9491 }
9592
96- public function test_send_multiple_emails (): void
93+ public function testSendMultipleEmails (): void
9794 {
9895 $ to1 = $ this ->testEmail ;
9996 $ to2 = $ this ->testEmail ;
@@ -118,7 +115,7 @@ public function test_send_multiple_emails(): void
118115 $ this ->assertEquals ('success ' , $ response ['results ' ][1 ]['status ' ], \var_export ($ response , true ));
119116 }
120117
121- public function test_send_email_with_file_attachment (): void
118+ public function testSendEmailWithFileAttachment (): void
122119 {
123120 $ message = new Email (
124121 to: [$ this ->testEmail ],
@@ -138,7 +135,7 @@ public function test_send_email_with_file_attachment(): void
138135 $ this ->assertResponse ($ response );
139136 }
140137
141- public function test_send_email_with_string_attachment (): void
138+ public function testSendEmailWithStringAttachment (): void
142139 {
143140 $ message = new Email (
144141 to: [$ this ->testEmail ],
@@ -159,7 +156,7 @@ public function test_send_email_with_string_attachment(): void
159156 $ this ->assertResponse ($ response );
160157 }
161158
162- public function test_send_email_with_attachment_exceeding_max_size (): void
159+ public function testSendEmailWithAttachmentExceedingMaxSize (): void
163160 {
164161 $ this ->expectException (\Exception::class);
165162 $ this ->expectExceptionMessage ('Total attachment size exceeds ' );
0 commit comments