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