Skip to content

Commit

Permalink
merged branch GromNaN/patch-2 (PR #4189)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
fabpot committed May 3, 2012
2 parents 34a0c7a + 970d0b4 commit 6f6ee95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/BrowserKit/Client.php
Expand Up @@ -84,7 +84,7 @@ public function followRedirects($followRedirect = true)
*/
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
Expand Down

0 comments on commit 6f6ee95

Please sign in to comment.