55use Carbon \Carbon ;
66use Illuminate \Support \Facades \File ;
77use Illuminated \Testing \Tests \TestCase ;
8+ use PHPUnit \Framework \Attributes \Test ;
89
910class LogFileAssertsTest extends TestCase
1011{
@@ -31,28 +32,28 @@ private function createSampleLogFile(): void
3132 File::append ($ path , "[ {$ date }]: Sample log message 3! \n" );
3233 }
3334
34- /** @test */
35- public function it_has_see_log_file_assertion ()
35+ #[Test]
36+ public function it_has_see_log_file_assertion (): void
3637 {
3738 $ this ->seeLogFile ('example.log ' );
3839 }
3940
40- /** @test */
41- public function it_has_dont_see_log_file_assertion ()
41+ #[Test]
42+ public function it_has_dont_see_log_file_assertion (): void
4243 {
4344 $ this ->dontSeeLogFile ('fake.log ' );
4445 }
4546
46- /** @test */
47- public function it_has_see_in_log_file_assertion ()
47+ #[Test]
48+ public function it_has_see_in_log_file_assertion (): void
4849 {
4950 $ this ->seeInLogFile ('example.log ' , 'Sample log message 1! ' );
5051 $ this ->seeInLogFile ('example.log ' , 'Sample log message 2! ' );
5152 $ this ->seeInLogFile ('example.log ' , 'Sample log message 3! ' );
5253 }
5354
54- /** @test */
55- public function which_supports_array_of_contents ()
55+ #[Test]
56+ public function which_supports_array_of_contents (): void
5657 {
5758 $ this ->seeInLogFile ('example.log ' , [
5859 'Sample log message 1! ' ,
@@ -61,24 +62,24 @@ public function which_supports_array_of_contents()
6162 ]);
6263 }
6364
64- /** @test */
65- public function which_supports_datetime_placeholder ()
65+ #[Test]
66+ public function which_supports_datetime_placeholder (): void
6667 {
6768 $ this ->seeInLogFile ('example.log ' , '[%datetime%]: Sample log message 1! ' );
6869 $ this ->seeInLogFile ('example.log ' , '[%datetime%]: Sample log message 2! ' );
6970 $ this ->seeInLogFile ('example.log ' , '[%datetime%]: Sample log message 3! ' );
7071 }
7172
72- /** @test */
73- public function it_has_dont_see_in_log_file_assertion ()
73+ #[Test]
74+ public function it_has_dont_see_in_log_file_assertion (): void
7475 {
7576 $ this ->dontSeeInLogFile ('example.log ' , 'Not existing log message 1! ' );
7677 $ this ->dontSeeInLogFile ('example.log ' , 'Not existing log message 2! ' );
7778 $ this ->dontSeeInLogFile ('example.log ' , 'Not existing log message 3! ' );
7879 }
7980
80- /** @test */
81- public function which_also_supports_array_of_contents ()
81+ #[Test]
82+ public function which_also_supports_array_of_contents (): void
8283 {
8384 $ this ->dontSeeInLogFile ('example.log ' , [
8485 'Not existing log message 1! ' ,
0 commit comments