summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/psr-worker.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/psr-worker.php b/tests/psr-worker.php
index 31bd7acf..db53eee2 100644
--- a/tests/psr-worker.php
+++ b/tests/psr-worker.php
@@ -6,10 +6,15 @@ use Spiral\Goridge;
use Spiral\RoadRunner;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/vendor/autoload.php";
+require __DIR__ . "/vendor/autoload.php";
$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT));
-$psr7 = new RoadRunner\Http\PSR7Worker($worker);
+$psr7 = new RoadRunner\Http\PSR7Worker(
+ $worker,
+ new \Nyholm\Psr7\Factory\Psr17Factory(),
+ new \Nyholm\Psr7\Factory\Psr17Factory(),
+ new \Nyholm\Psr7\Factory\Psr17Factory()
+);
while ($req = $psr7->waitRequest()) {
try {