We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60fb967 commit 0fe1849Copy full SHA for 0fe1849
1 file changed
tests/Custom/TimeoutTest.php
@@ -9,6 +9,24 @@ class TimeoutTest extends TestCase
9
{
10
use ExpectException;
11
12
+ /**
13
+ * @after
14
+ */
15
+ protected function resetSessions()
16
+ {
17
+ $session = $this->getSession();
18
+
19
+ // Stop the session instead of only resetting it, as timeouts are not reset (they are configuring the session itself)
20
+ if ($session->isStarted()) {
21
+ $session->stop();
22
+ }
23
24
+ // Reset the array of timeouts to avoid impacting other tests
25
+ $session->getDriver()->setTimeouts(array());
26
27
+ parent::resetSessions();
28
29
30
public function testInvalidTimeoutSettingThrowsException()
31
32
$this->expectException('\Behat\Mink\Exception\DriverException');
0 commit comments