merged branch GromNaN/patch-2 (PR #4189)
Commits
-------
970d0b4
[BrowserKit] Check class existence only when required.
Discussion
----------
[BrowserKit] Check class existence only when required.
See PR #4177
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Remove incorrect exception when doing $client->insulate(false)
This commit is contained in:
commit
6f6ee95798
@ -84,7 +84,7 @@ abstract class Client
|
||||
*/
|
||||
public function insulate($insulated = true)
|
||||
{
|
||||
if (!class_exists('Symfony\\Component\\Process\\Process')) {
|
||||
if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) {
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \RuntimeException('Unable to isolate requests as the Symfony Process Component is not installed.');
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
Reference in New Issue
Block a user