/** * @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]); } }
/** * @return BrowserSession */ public function getSession() { return $this->seleniumContext->getSession(); }