Exemple #1
0
 /**
  * Returns assert session.
  *
  * @return WebAssert
  */
 protected function getAssertSession()
 {
     return self::$mink->assertSession('sess');
 }
Exemple #2
0
 public function testAssertSessionNotRegistered()
 {
     $session = $this->getSessionMock();
     $this->assertInstanceOf('Behat\\Mink\\WebAssert', $this->mink->assertSession($session));
 }
Exemple #3
0
 /**
  * @param string|null $name name of the session OR active session will be used
  *
  * @return WebAssert
  */
 public function assertSession($name = null)
 {
     return $this->mink->assertSession($name);
 }
 /**
  * @param null|string $name
  *
  * @return WebAssert
  */
 protected function assertSession($name = null)
 {
     return $this->mink->assertSession($name);
 }