public function assertSession($session = null)
    {
        if (!($session instanceof Session)) {
            $session = $this->getSession($session);
        }

        return new WebAssert($session);
    }
public function assertSession($session = null)
    {
        if (!($session instanceof Session)) {
            $session = $this->getSession($session);
        }

        return new WebAssert($session);
    }
public function assertSession ( $ session = null ) { if ( ! ( $ session instanceof Session ) ) { $ session = $ this -> getSession ( $ session ) ; } return new WebAssert ( $ session ) ; }
Returns session asserter.

@param Session|string $session session object or name

@return WebAssert
Returns session asserter .