@@ -83,10 +83,12 @@ public function testErrorStream()
83
83
$ this ->assertFileNotExists ($ file );
84
84
TelegramLog::initErrorLog ($ file );
85
85
TelegramLog::error ('my error ' );
86
+ TelegramLog::error ('my 50% error ' );
86
87
TelegramLog::error ('my %s error ' , 'placeholder ' );
87
88
$ this ->assertFileExists ($ file );
88
89
$ error_log = file_get_contents ($ file );
89
90
$ this ->assertContains ('bot_log.ERROR: my error ' , $ error_log );
91
+ $ this ->assertContains ('bot_log.ERROR: my 50% error ' , $ error_log );
90
92
$ this ->assertContains ('bot_log.ERROR: my placeholder error ' , $ error_log );
91
93
}
92
94
@@ -96,10 +98,12 @@ public function testDebugStream()
96
98
$ this ->assertFileNotExists ($ file );
97
99
TelegramLog::initDebugLog ($ file );
98
100
TelegramLog::debug ('my debug ' );
101
+ TelegramLog::debug ('my 50% debug ' );
99
102
TelegramLog::debug ('my %s debug ' , 'placeholder ' );
100
103
$ this ->assertFileExists ($ file );
101
104
$ debug_log = file_get_contents ($ file );
102
105
$ this ->assertContains ('bot_log.DEBUG: my debug ' , $ debug_log );
106
+ $ this ->assertContains ('bot_log.DEBUG: my 50% debug ' , $ debug_log );
103
107
$ this ->assertContains ('bot_log.DEBUG: my placeholder debug ' , $ debug_log );
104
108
}
105
109
@@ -109,10 +113,12 @@ public function testUpdateStream()
109
113
$ this ->assertFileNotExists ($ file );
110
114
TelegramLog::initUpdateLog ($ file );
111
115
TelegramLog::update ('my update ' );
116
+ TelegramLog::update ('my 50% update ' );
112
117
TelegramLog::update ('my %s update ' , 'placeholder ' );
113
118
$ this ->assertFileExists ($ file );
114
119
$ debug_log = file_get_contents ($ file );
115
120
$ this ->assertContains ('my update ' , $ debug_log );
121
+ $ this ->assertContains ('my 50% update ' , $ debug_log );
116
122
$ this ->assertContains ('my placeholder update ' , $ debug_log );
117
123
}
118
124
@@ -127,15 +133,19 @@ public function testExternalStream()
127
133
128
134
TelegramLog::initialize ($ external_monolog );
129
135
TelegramLog::error ('my error ' );
136
+ TelegramLog::error ('my 50% error ' );
130
137
TelegramLog::error ('my %s error ' , 'placeholder ' );
131
138
TelegramLog::debug ('my debug ' );
139
+ TelegramLog::debug ('my 50% debug ' );
132
140
TelegramLog::debug ('my %s debug ' , 'placeholder ' );
133
141
134
142
$ this ->assertFileExists ($ file );
135
143
$ file_contents = file_get_contents ($ file );
136
144
$ this ->assertContains ('bot_update_log.ERROR: my error ' , $ file_contents );
145
+ $ this ->assertContains ('bot_update_log.ERROR: my 50% error ' , $ file_contents );
137
146
$ this ->assertContains ('bot_update_log.ERROR: my placeholder error ' , $ file_contents );
138
147
$ this ->assertContains ('bot_update_log.DEBUG: my debug ' , $ file_contents );
148
+ $ this ->assertContains ('bot_update_log.DEBUG: my 50% debug ' , $ file_contents );
139
149
$ this ->assertContains ('bot_update_log.DEBUG: my placeholder debug ' , $ file_contents );
140
150
}
141
151
}
0 commit comments