@@ -29,7 +29,7 @@ public function testLegacyLoadWithSeveralHandlers()
29
29
$ this ->markTestSkipped ('Symfony MonologBridge < 5.2 is needed. ' );
30
30
}
31
31
32
- $ this ->doTestLoadWithSeveralHandlers (\ Monolog \Logger:: ERROR );
32
+ $ this ->doTestLoadWithSeveralHandlers (' ERROR ' );
33
33
}
34
34
35
35
public function testLoadWithSeveralHandlers ()
@@ -38,7 +38,7 @@ public function testLoadWithSeveralHandlers()
38
38
$ this ->markTestSkipped ('Symfony MonologBridge >= 5.2 is needed. ' );
39
39
}
40
40
41
- $ this ->doTestLoadWithSeveralHandlers (new Definition (ErrorLevelActivationStrategy::class, [\ Monolog \Logger:: ERROR ]));
41
+ $ this ->doTestLoadWithSeveralHandlers (new Definition (ErrorLevelActivationStrategy::class, [' ERROR ' ]));
42
42
}
43
43
44
44
private function doTestLoadWithSeveralHandlers ($ activation )
@@ -59,15 +59,15 @@ private function doTestLoadWithSeveralHandlers($activation)
59
59
60
60
$ handler = $ container ->getDefinition ('monolog.handler.custom ' );
61
61
$ 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 ]);
63
63
64
64
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
65
65
$ 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 ' ]);
67
67
68
68
$ handler = $ container ->getDefinition ('monolog.handler.filtered ' );
69
69
$ 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 ]);
71
71
}
72
72
73
73
/** @group legacy */
@@ -77,7 +77,7 @@ public function testLegacyLoadWithOverwriting()
77
77
$ this ->markTestSkipped ('Symfony MonologBridge < 5.2 is needed. ' );
78
78
}
79
79
80
- $ this ->doTestLoadWithOverwriting (\ Monolog \Logger:: ERROR );
80
+ $ this ->doTestLoadWithOverwriting (' ERROR ' );
81
81
}
82
82
83
83
public function testLoadWithOverwriting ()
@@ -86,7 +86,7 @@ public function testLoadWithOverwriting()
86
86
$ this ->markTestSkipped ('Symfony MonologBridge >= 5.2 is needed. ' );
87
87
}
88
88
89
- $ this ->doTestLoadWithOverwriting (new Definition (ErrorLevelActivationStrategy::class, [\ Monolog \Logger:: ERROR ]));
89
+ $ this ->doTestLoadWithOverwriting (new Definition (ErrorLevelActivationStrategy::class, [' ERROR ' ]));
90
90
}
91
91
92
92
private function doTestLoadWithOverwriting ($ activation )
@@ -106,7 +106,7 @@ private function doTestLoadWithOverwriting($activation)
106
106
107
107
$ handler = $ container ->getDefinition ('monolog.handler.custom ' );
108
108
$ 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 ]);
110
110
111
111
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
112
112
$ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FingersCrossedHandler ' );
@@ -132,7 +132,7 @@ public function testLoadWithNewAtEnd()
132
132
133
133
$ handler = $ container ->getDefinition ('monolog.handler.new ' );
134
134
$ 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 ]);
136
136
}
137
137
138
138
public function testLoadWithNewAndPriority ()
@@ -156,15 +156,15 @@ public function testLoadWithNewAndPriority()
156
156
157
157
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
158
158
$ 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 ]);
160
160
161
161
$ handler = $ container ->getDefinition ('monolog.handler.first ' );
162
162
$ 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 ]);
164
164
165
165
$ handler = $ container ->getDefinition ('monolog.handler.last ' );
166
166
$ 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 ]);
168
168
}
169
169
170
170
public function testHandlersWithChannels ()
@@ -209,7 +209,7 @@ public function testServerLog()
209
209
210
210
$ this ->assertEquals ([
211
211
'0:9911 ' ,
212
- 100 ,
212
+ ' DEBUG ' ,
213
213
true ,
214
214
], $ container ->getDefinition ('monolog.handler.server_log ' )->getArguments ());
215
215
}
0 commit comments