示例#1
0
 /**
  * @param $destination
  * @param array $args
  */
 protected function assertDestination($destination, $args = array())
 {
     $appRequest = $this->seleniumContext->getSession()->presenter();
     Assert::true(empty($appRequest));
     Assert::same($destination, $appRequest->getPresenterName());
     foreach ($args as $param => $value) {
         Assert::true(array_key_exists($param, $appRequest->parameters));
         Assert::same($value, $appRequest->parameters[$param]);
     }
 }
示例#2
0
 /**
  * @return BrowserSession
  */
 public function getSession()
 {
     return $this->seleniumContext->getSession();
 }