/**
  * Creates a Client.
  *
  * @param array $options An array of options to pass to the createKernel class
  * @param array $server  An array of server parameters
  *
  * @return Client A Client instance
  */
 protected static function createClient(array $options = array(), array $server = array())
 {
     /** @var Client $client */
     $client = parent::createClient($options, $server);
     $kernel = $client->getKernel();
     $application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
     $application->setAutoExit(false);
     self::$internalApplication = $application;
     $command = new BehatCommand();
     $command->setApplication($application);
     self::$internalCommand = $command;
     return $client;
 }