We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6164c commit a5f7165Copy full SHA for a5f7165
src/Codeception/Lib/Connector/Universal.php
@@ -8,8 +8,8 @@ final class Universal extends Client
8
{
9
use Shared\PhpSuperGlobalsConverter;
10
11
- protected ?object $mockedResponse = null;
12
- protected ?string $index = null;
+ private ?object $mockedResponse = null;
+ private string $index = '';
13
14
public function setIndex(string $index): void
15
@@ -46,7 +46,9 @@ public function doRequest(object $request): object
46
$_SERVER['REQUEST_URI'] = $uri;
47
48
ob_start();
49
- include $this->index;
+ if ('' !== $this->index) {
50
+ include $this->index;
51
+ }
52
53
$content = ob_get_contents();
54
ob_end_clean();
0 commit comments