Skip to content

Commit

Permalink
[BrowserKit] Check class existence only when required.
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed May 3, 2012
1 parent 34a0c7a commit 970d0b4
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 970d0b4

Please sign in to comment.