Completed
Push — master ( ac19ef...776471 )
by Kamil
28s queued 11s
created

Mink   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __destruct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FriendsOfBehat\SymfonyExtension\Mink;
6
7
use Behat\Mink\Mink as BaseMink;
8
9
class Mink extends BaseMink
10
{
11
    /**
12
     * Very weird bug happens when Mink is exposed as a LAZY service in tested application.
13
     * In that case, the destructor might be called at any random time. If it is called
14
     * while we're in the middle of any Mink-related operation, it'll leave the used Mink session
15
     * in an invalid state. Therefore, not stopping all the sessions while destructing Mink
16
     * saves our sanity.
17
     */
18
    public function __destruct()
19
    {
20
        // Intentionally left empty
21
    }
22
}
23