@@ -140,6 +140,8 @@ public function testValidateAndSetWebhookSuccess()
140140 );
141141
142142 $ telegram = $ botManager ->getTelegram ();
143+
144+ /** @var \PHPUnit_Framework_MockObject_MockObject $telegram */
143145 $ telegram ->expects (static ::any ())
144146 ->method ('setWebHook ' )
145147 ->with ('https://web/hook.php?a=handle&s=secret_12345 ' )
@@ -150,14 +152,11 @@ public function testValidateAndSetWebhookSuccess()
150152 $ telegram ->expects (static ::any ())
151153 ->method ('getDescription ' )
152154 ->will (static ::onConsecutiveCalls (
153- // set
154- 'Webhook was set ' ,
155+ 'Webhook was set ' , // set
155156 'Webhook is already set ' ,
156- // reset
157- 'Webhook was deleted ' ,
157+ 'Webhook was deleted ' , // reset
158158 'Webhook was set ' ,
159- // unset
160- 'Webhook was deleted ' ,
159+ 'Webhook was deleted ' , //unset
161160 'Webhook is already deleted '
162161 ));
163162
@@ -321,16 +320,16 @@ public function testGetOutput()
321320 public function testGetUpdatesLiveBot ()
322321 {
323322 $ botManager = new BotManager (ParamsTest::$ live_params );
324- $ output = $ botManager ->run ()->getOutput ();
323+ $ output = $ botManager ->run ()->getOutput ();
325324 self ::assertContains ('Updates processed: 0 ' , $ output );
326325 }
327326
328327 public function testGetUpdatesLoopLiveBot ()
329328 {
330329 // Looping for 5 seconds should be enough to get a result.
331- $ _GET = ['l ' => 5 ];
330+ $ _GET = ['l ' => 5 ];
332331 $ botManager = new BotManager (ParamsTest::$ live_params );
333- $ output = $ botManager ->run ()->getOutput ();
332+ $ output = $ botManager ->run ()->getOutput ();
334333 self ::assertContains ('Looping getUpdates until ' , $ output );
335334 self ::assertContains ('Updates processed: 0 ' , $ output );
336335 }
0 commit comments