/** * @Given I am still on the Login page */ public function i_am_still_on_the_login_page() { $current_url = $this->helper_context->getSession()->getCurrentUrl(); if (strpos($current_url, $this->login_page->get_path()) === FALSE) { throw new CWContextException("No longer on the Loginpage, but on {$current_url}."); } }