You are here

public function Mink::isSessionStarted in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Mink.php \Behat\Mink\Mink::isSessionStarted()

Checks whether a named session (or the default session) has already been started.

Parameters

string $name session name - if null then the default session will be checked:

Return value

bool whether the session has been started

Throws

\InvalidArgumentException If the named session is not registered

File

vendor/behat/mink/src/Mink.php, line 132

Class

Mink
Mink sessions manager.

Namespace

Behat\Mink

Code

public function isSessionStarted($name = null) {
  $session = $this
    ->locateSession($name);
  return $session
    ->isStarted();
}