@@ 126-135 (lines=10) @@ | ||
123 | ||
124 | $session = $suite->getSetting('mink_session'); |
|
125 | ||
126 | if (!is_string($session)) { |
|
127 | throw new SuiteConfigurationException( |
|
128 | sprintf( |
|
129 | '`mink_session` setting of the "%s" suite is expected to be a string, %s given.', |
|
130 | $suite->getName(), |
|
131 | gettype($session) |
|
132 | ), |
|
133 | $suite->getName() |
|
134 | ); |
|
135 | } |
|
136 | ||
137 | return $session; |
|
138 | } |
|
@@ 152-161 (lines=10) @@ | ||
149 | ||
150 | $session = $suite->getSetting('mink_javascript_session'); |
|
151 | ||
152 | if (!is_string($session)) { |
|
153 | throw new SuiteConfigurationException( |
|
154 | sprintf( |
|
155 | '`mink_javascript_session` setting of the "%s" suite is expected to be a string, %s given.', |
|
156 | $suite->getName(), |
|
157 | gettype($session) |
|
158 | ), |
|
159 | $suite->getName() |
|
160 | ); |
|
161 | } |
|
162 | ||
163 | if (!in_array($session, $this->availableJavascriptSessions)) { |
|
164 | throw new SuiteConfigurationException( |