@@ -29,7 +29,7 @@ public function testLegacyLoadWithSeveralHandlers()
2929 $ this ->markTestSkipped ('Symfony MonologBridge < 5.2 is needed. ' );
3030 }
3131
32- $ this ->doTestLoadWithSeveralHandlers (\ Monolog \Logger:: ERROR );
32+ $ this ->doTestLoadWithSeveralHandlers (' ERROR ' );
3333 }
3434
3535 public function testLoadWithSeveralHandlers ()
@@ -38,7 +38,7 @@ public function testLoadWithSeveralHandlers()
3838 $ this ->markTestSkipped ('Symfony MonologBridge >= 5.2 is needed. ' );
3939 }
4040
41- $ this ->doTestLoadWithSeveralHandlers (new Definition (ErrorLevelActivationStrategy::class, [\ Monolog \Logger:: ERROR ]));
41+ $ this ->doTestLoadWithSeveralHandlers (new Definition (ErrorLevelActivationStrategy::class, [' ERROR ' ]));
4242 }
4343
4444 private function doTestLoadWithSeveralHandlers ($ activation )
@@ -59,15 +59,15 @@ private function doTestLoadWithSeveralHandlers($activation)
5959
6060 $ handler = $ container ->getDefinition ('monolog.handler.custom ' );
6161 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\StreamHandler ' );
62- $ this ->assertDICConstructorArguments ($ handler , ['/tmp/symfony.log ' , \ Monolog \Logger:: ERROR , false , 0666 , false ]);
62+ $ this ->assertDICConstructorArguments ($ handler , ['/tmp/symfony.log ' , ' ERROR ' , false , 0666 , false ]);
6363
6464 $ handler = $ container ->getDefinition ('monolog.handler.main ' );
6565 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FingersCrossedHandler ' );
66- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), $ activation , 0 , true , true , \ Monolog \Logger:: NOTICE ]);
66+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), $ activation , 0 , true , true , ' NOTICE ' ]);
6767
6868 $ handler = $ container ->getDefinition ('monolog.handler.filtered ' );
6969 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FilterHandler ' );
70- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested2 ' ), [\ Monolog \Logger:: WARNING , \ Monolog \Logger:: ERROR ], \ Monolog \Logger:: EMERGENCY , true ]);
70+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested2 ' ), [' WARNING ' , ' ERROR ' ], ' EMERGENCY ' , true ]);
7171 }
7272
7373 /** @group legacy */
@@ -77,7 +77,7 @@ public function testLegacyLoadWithOverwriting()
7777 $ this ->markTestSkipped ('Symfony MonologBridge < 5.2 is needed. ' );
7878 }
7979
80- $ this ->doTestLoadWithOverwriting (\ Monolog \Logger:: ERROR );
80+ $ this ->doTestLoadWithOverwriting (' ERROR ' );
8181 }
8282
8383 public function testLoadWithOverwriting ()
@@ -86,7 +86,7 @@ public function testLoadWithOverwriting()
8686 $ this ->markTestSkipped ('Symfony MonologBridge >= 5.2 is needed. ' );
8787 }
8888
89- $ this ->doTestLoadWithOverwriting (new Definition (ErrorLevelActivationStrategy::class, [\ Monolog \Logger:: ERROR ]));
89+ $ this ->doTestLoadWithOverwriting (new Definition (ErrorLevelActivationStrategy::class, [' ERROR ' ]));
9090 }
9191
9292 private function doTestLoadWithOverwriting ($ activation )
@@ -106,7 +106,7 @@ private function doTestLoadWithOverwriting($activation)
106106
107107 $ handler = $ container ->getDefinition ('monolog.handler.custom ' );
108108 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\StreamHandler ' );
109- $ this ->assertDICConstructorArguments ($ handler , ['/tmp/symfony.log ' , \ Monolog \Logger:: WARNING , true , null , false ]);
109+ $ this ->assertDICConstructorArguments ($ handler , ['/tmp/symfony.log ' , ' WARNING ' , true , null , false ]);
110110
111111 $ handler = $ container ->getDefinition ('monolog.handler.main ' );
112112 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FingersCrossedHandler ' );
@@ -132,7 +132,7 @@ public function testLoadWithNewAtEnd()
132132
133133 $ handler = $ container ->getDefinition ('monolog.handler.new ' );
134134 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\StreamHandler ' );
135- $ this ->assertDICConstructorArguments ($ handler , ['/tmp/monolog.log ' , \ Monolog \Logger:: ERROR , true , null , false ]);
135+ $ this ->assertDICConstructorArguments ($ handler , ['/tmp/monolog.log ' , ' ERROR ' , true , null , false ]);
136136 }
137137
138138 public function testLoadWithNewAndPriority ()
@@ -156,15 +156,15 @@ public function testLoadWithNewAndPriority()
156156
157157 $ handler = $ container ->getDefinition ('monolog.handler.main ' );
158158 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\BufferHandler ' );
159- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), 0 , \ Monolog \Logger:: INFO , true , false ]);
159+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), 0 , ' INFO ' , true , false ]);
160160
161161 $ handler = $ container ->getDefinition ('monolog.handler.first ' );
162162 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\RotatingFileHandler ' );
163- $ this ->assertDICConstructorArguments ($ handler , ['/tmp/monolog.log ' , 0 , \ Monolog \Logger:: ERROR , true , null , false ]);
163+ $ this ->assertDICConstructorArguments ($ handler , ['/tmp/monolog.log ' , 0 , ' ERROR ' , true , null , false ]);
164164
165165 $ handler = $ container ->getDefinition ('monolog.handler.last ' );
166166 $ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\StreamHandler ' );
167- $ this ->assertDICConstructorArguments ($ handler , ['/tmp/last.log ' , \ Monolog \Logger:: ERROR , true , null , false ]);
167+ $ this ->assertDICConstructorArguments ($ handler , ['/tmp/last.log ' , ' ERROR ' , true , null , false ]);
168168 }
169169
170170 public function testHandlersWithChannels ()
@@ -209,7 +209,7 @@ public function testServerLog()
209209
210210 $ this ->assertEquals ([
211211 '0:9911 ' ,
212- 100 ,
212+ ' DEBUG ' ,
213213 true ,
214214 ], $ container ->getDefinition ('monolog.handler.server_log ' )->getArguments ());
215215 }
0 commit comments