22
33namespace  Http \HttplugBundle \Tests \Functional ;
44
5+ use  GuzzleHttp \Psr7 \Request  as  GuzzleRequest ;
56use  Http \Client \Common \Plugin \RedirectPlugin ;
67use  Http \Client \Common \PluginClient ;
78use  Http \Client \HttpClient ;
1415use  Psr \Http \Message \ResponseInterface ;
1516use  Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
1617use  Symfony \Component \EventDispatcher \EventDispatcherInterface ;
17- use  Symfony \Component \HttpFoundation \Request ;
18+ use  Symfony \Component \HttpFoundation \Request   as   SymfonyRequest ;
1819use  Symfony \Component \HttpKernel \Event \GetResponseEvent ;
1920use  Symfony \Component \HttpKernel \HttpKernelInterface ;
2021use  Symfony \Component \HttpKernel \Kernel ;
@@ -98,7 +99,7 @@ public function testProfilingPsr18Decoration()
9899        $ psr18ClientNSA ::getProperty ($ flexibleClient'httpClient ' );
99100        $ this assertInstanceOf (ClientInterface::class, $ psr18Client
100101
101-         $ response$ clientsendRequest (new  \ GuzzleHttp \ Psr7 \ Request ('GET ' , 'https://example.com ' ));
102+         $ response$ clientsendRequest (new  GuzzleRequest ('GET ' , 'https://example.com ' ));
102103        $ this assertInstanceOf (ResponseInterface::class, $ response
103104    }
104105
@@ -112,7 +113,7 @@ protected static function bootKernel(array $options = [])
112113        /** @var EventDispatcherInterface $dispatcher */ 
113114        $ dispatcherstatic ::$ kernelgetContainer ()->get ('event_dispatcher ' );
114115
115-         $ eventnew  GetResponseEvent (static ::$ kernelnew  Request (), HttpKernelInterface::MASTER_REQUEST );
116+         $ eventnew  GetResponseEvent (static ::$ kernelnew  SymfonyRequest (), HttpKernelInterface::MASTER_REQUEST );
116117
117118        if  (version_compare (Kernel::VERSION , '4.3.0 ' , '>= ' )) {
118119            $ dispatcherdispatch ($ eventREQUEST );
0 commit comments