/**
  * Initializes Goutte driver.
  *
  * @param Symfony\Component\BrowserKit\Client $client BrowserKit client instance
  */
 public function __construct(Client $client = null)
 {
     // create new kernel, that could be easily rebooted
     $class = get_class($client->getKernel());
     $kernel = new $class('Behat', 'config.yml', $client->getKernel()->getEnvironment(), $client->getKernel()->isDebug());
     $kernel->boot();
     parent::__construct($kernel->getContainer()->get('test.client'));
 }