common\WebTestCase::createClient PHP Méthode

createClient() protected static méthode

Creates a Client.
protected static createClient ( array $options = [], array $server = [] ) : Client
$options array An array of options to pass to the createKernel class
$server array An array of server parameters
Résultat Symfony\Bundle\FrameworkBundle\Client A Client instance
    protected static function createClient(array $options = array(), array $server = array())
    {
        if (null !== static::$kernel) {
            static::$kernel->shutdown();
        }
        static::$kernel = static::createKernel($options);
        $client = static::$kernel->getContainer()->get('test.client');
        $client->setServerParameters($server);
        return $client;
    }