Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | private function getClient() |
||
38 | { |
||
39 | if (null === $this->client) { |
||
40 | if ('symfony2' === $this->mink->getDefaultSessionName()) { |
||
41 | $this->client = new Request\Goutte($this->mink); |
||
42 | } else { |
||
43 | $this->client = new Request\BrowserKit($this->mink); |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return $this->client; |
||
48 | } |
||
49 | } |
||
50 |