MDL-46891 behat: Increment counter
authorRajesh Taneja <rajesh@moodle.com>
Mon, 14 Mar 2016 06:24:36 +0000 (14:24 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Mon, 14 Mar 2016 06:24:36 +0000 (14:24 +0800)
lib/tests/behat/behat_hooks.php

index 449fcdc..95a16ee 100644 (file)
@@ -398,7 +398,7 @@ class behat_hooks extends behat_base {
      * @AfterScenario @_switch_window
      */
     public function after_scenario_switchwindow(AfterScenarioScope $event) {
-        for ($count = 0; $count < self::EXTENDED_TIMEOUT; $count) {
+        for ($count = 0; $count < self::EXTENDED_TIMEOUT; $count++) {
             try {
                 $this->getSession()->restart();
                 break;