[BrowserKit] Check class existence only when required.
This commit is contained in:
parent
34a0c7a635
commit
970d0b4ddb
@ -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