File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 33namespace Codeception \Lib \Connector ;
44
55use Closure ;
6+ use Codeception \Lib \Connector \Shared \PhpSuperGlobalsConverter ;
7+ use Codeception \Util \Stub ;
68use Phalcon \Di ;
79use Phalcon \Http ;
8- use RuntimeException ;
9- use ReflectionProperty ;
10- use Codeception \Util \Stub ;
1110use Phalcon \Mvc \Application ;
12- use Symfony \Component \BrowserKit \Cookie ;
13- use Symfony \Component \BrowserKit \AbstractBrowser as Client ;
1411use Phalcon \Mvc \Micro as MicroApplication ;
12+ use ReflectionProperty ;
13+ use RuntimeException ;
14+ use Symfony \Component \BrowserKit \AbstractBrowser as Client ;
15+ use Symfony \Component \BrowserKit \Cookie ;
1516use Symfony \Component \BrowserKit \Response ;
16- use Codeception \Lib \Connector \Shared \PhpSuperGlobalsConverter ;
1717
1818class Phalcon4 extends Client
1919{
@@ -110,6 +110,9 @@ public function doRequest($request)
110110 Di::reset ();
111111 Di::setDefault ($ di );
112112
113+ if ($ di ->has ('request ' )) {
114+ $ di ->remove ('request ' );
115+ }
113116 $ di ['request ' ] = Stub::construct ($ phRequest , [], ['getRawBody ' => $ request ->getContent ()]);
114117
115118 $ response = $ application ->handle ($ pathString );
You can’t perform that action at this time.
0 commit comments