protected function verifySession()
    {
        // Get the session.
        $session = $this->getSession();

        // Start the session if needed.
        if (! $session->isStarted()) {
            $session->start();
        }

        // If we aren't on a valid page
        if ('about:blank' === $session->getCurrentUrl()) {
            // Go to the home page
            $session->visit('/');
        }

        // Return the session.
        return $session;
    }
protected function verifySession()
    {
        // Get the session.
        $session = $this->getSession();

        // Start the session if needed.
        if (! $session->isStarted()) {
            $session->start();
        }

        // If we aren't on a valid page
        if ('about:blank' === $session->getCurrentUrl()) {
            // Go to the home page
            $session->visit('/');
        }

        // Return the session.
        return $session;
    }
protected function verifySession ( ) { // Get the session. $ session = $ this -> getSession ( ) ; // Start the session if needed. if ( ! $ session -> isStarted ( ) ) { $ session -> start ( ) ; } // If we aren't on a valid page if ( 'about:blank' === $ session -> getCurrentUrl ( ) ) { // Go to the home page $ session -> visit ( '/' ) ; } // Return the session. return $ session ; }
Verify and return a properly started Mink session

@return \Behat\Mink\Session Mink session.
Verify and return a properly started Mink session