public function Mink::assertSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Mink.php \Behat\Mink\Mink::assertSession()
Returns session asserter.
Parameters
Session|string $session session object or name:
Return value
File
- vendor/
behat/ mink/ src/ Mink.php, line 146
Class
- Mink
- Mink sessions manager.
Namespace
Behat\MinkCode
public function assertSession($session = null) {
if (!$session instanceof Session) {
$session = $this
->getSession($session);
}
return new WebAssert($session);
}