diff options
author | Wolfy-J <[email protected]> | 2020-12-15 11:32:49 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-12-15 11:32:49 +0300 |
commit | 9b1c2648bdbf80bdf43fbe2c64d06cfbad1340fc (patch) | |
tree | b935110f53b2ca912919ab8e8990bf7fc41c09c6 /tests | |
parent | fec111c55ce65640e22f134d2e249a2b8e54acf4 (diff) |
- fixing tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/psr-worker.php | 9 |
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 { |