77use Illuminated \Console \Tests \TestCase ;
88use Monolog \Level ;
99use Monolog \LogRecord ;
10+ use PHPUnit \Framework \Attributes \Test ;
1011
1112class MonologHtmlFormatterTest extends TestCase
1213{
13- /** @test */
14- public function it_properly_formats_debug_records ()
14+ #[Test]
15+ public function it_properly_formats_debug_records (): void
1516 {
1617 $ record = $ this ->generateRecord ('Debug! ' , Level::Debug);
1718
1819 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
1920 }
2021
21- /** @test */
22- public function it_properly_formats_info_records ()
22+ #[Test]
23+ public function it_properly_formats_info_records (): void
2324 {
2425 $ record = $ this ->generateRecord ('Info! ' , Level::Info);
2526
2627 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
2728 }
2829
29- /** @test */
30- public function it_properly_formats_notice_records ()
30+ #[Test]
31+ public function it_properly_formats_notice_records (): void
3132 {
3233 $ record = $ this ->generateRecord ('Notice! ' , Level::Notice);
3334
3435 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
3536 }
3637
37- /** @test */
38- public function it_properly_formats_warning_records ()
38+ #[Test]
39+ public function it_properly_formats_warning_records (): void
3940 {
4041 $ record = $ this ->generateRecord ('Warning! ' , Level::Warning);
4142
4243 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
4344 }
4445
45- /** @test */
46- public function it_properly_formats_error_records ()
46+ #[Test]
47+ public function it_properly_formats_error_records (): void
4748 {
4849 $ record = $ this ->generateRecord ('Error! ' , Level::Error);
4950
5051 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
5152 }
5253
53- /** @test */
54- public function it_properly_formats_critical_records ()
54+ #[Test]
55+ public function it_properly_formats_critical_records (): void
5556 {
5657 $ record = $ this ->generateRecord ('Critical! ' , Level::Critical);
5758
5859 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
5960 }
6061
61- /** @test */
62- public function it_properly_formats_alert_records ()
62+ #[Test]
63+ public function it_properly_formats_alert_records (): void
6364 {
6465 $ record = $ this ->generateRecord ('Alert! ' , Level::Alert);
6566
6667 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
6768 }
6869
69- /** @test */
70- public function it_properly_formats_emergency_records ()
70+ #[Test]
71+ public function it_properly_formats_emergency_records (): void
7172 {
7273 $ record = $ this ->generateRecord ('Emergency! ' , Level::Emergency);
7374
7475 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
7576 }
7677
77- /** @test */
78- public function it_properly_formats_records_with_array_context ()
78+ #[Test]
79+ public function it_properly_formats_records_with_array_context (): void
7980 {
8081 $ record = $ this ->generateRecord ('Record with array context! ' , Level::Warning, [
8182 'foo ' => 'bar ' ,
@@ -87,8 +88,8 @@ public function it_properly_formats_records_with_array_context()
8788 $ this ->assertFormatterGeneratesExpectedOutput ($ record );
8889 }
8990
90- /** @test */
91- public function it_has_no_environment_subtitle_for_production ()
91+ #[Test]
92+ public function it_has_no_environment_subtitle_for_production (): void
9293 {
9394 $ this ->emulateProduction ();
9495 $ record = $ this ->generateRecord ('Notice! ' , Level::Notice);
0 commit comments