src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
/**
     * Creates a Client.
     *
     * @param array $options An array of options to pass to the createKernel method
     * @param array $server  An array of server parameters
     *
     * @return Client A Client instance
     */
Creates a Client.
@param array $options An array of options to pass to the createKernel method
@param array $server  An array of server parameters

@return Client A Client instance
Creates a Client . @param array $options An array of options to pass to the createKernel method @param array $server An array of server parameters @return Client A Client instance
protected static function createClient(array $options = [], array $server = [])
    {
        $kernel = static::bootKernel($options);
        try {
            $client = $kernel->getContainer()->get('test.client');
        } catch (ServiceNotFoundException $e) {
            throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit".');
        }
        $client->setServerParameters($server);
        return $client;
    }
protected static function createClient ( array $ options = [ ] , array $ server = [ ] ) { $ kernel = static :: bootKernel ( $ options ) ; try { $ client = $ kernel -> getContainer ( ) -> get ( 'test.client' ) ; } catch ( ServiceNotFoundException $ e ) { throw new \ LogicException ( 'You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit".' ) ; } $ client -> setServerParameters ( $ server ) ; return $ client ; }
Creates a Client.
Creates a Client .