diff options
Diffstat (limited to 'tests/allocate-failed.php')
-rw-r--r-- | tests/allocate-failed.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/allocate-failed.php b/tests/allocate-failed.php new file mode 100644 index 00000000..8514ecc0 --- /dev/null +++ b/tests/allocate-failed.php @@ -0,0 +1,18 @@ +<?php + +declare(strict_types=1); + +use Spiral\Goridge\StreamRelay; +use Spiral\RoadRunner\Worker as RoadRunner; + +require __DIR__ . "/vendor/autoload.php"; + +if (file_exists('break')) { + throw new Exception('oops'); +} + +$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT)); + +while($rr->waitPayload()){ + $rr->respond(new \Spiral\RoadRunner\Payload("")); +} |