diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/CommandLineTrait.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/integration/features/bootstrap/CommandLineTrait.php b/tests/integration/features/bootstrap/CommandLineTrait.php index 968486a8b..6cb354834 100644 --- a/tests/integration/features/bootstrap/CommandLineTrait.php +++ b/tests/integration/features/bootstrap/CommandLineTrait.php @@ -29,14 +29,14 @@ require __DIR__ . '/../../vendor/autoload.php'; trait CommandLineTrait { /** @var int return code of last command */ - private $lastCode; + private int $lastCode = 0; /** @var string stdout of last command */ - private $lastStdOut; + private string $lastStdOut = ''; /** @var string stderr of last command */ - private $lastStdErr; + private string $lastStdErr = ''; /** @var string */ - protected $ocPath = '../../../..'; + protected string $ocPath = '../../../..'; /** * Invokes an OCC command @@ -66,10 +66,6 @@ trait CommandLineTrait { $this->lastStdErr = stream_get_contents($pipes[2]); $this->lastCode = proc_close($process); - // Clean opcode cache - $client = new GuzzleHttp\Client(); - $client->request('GET', 'http://localhost:8080/apps/testing/clean_opcode_cache.php'); - return $this->lastCode; } |