summaryrefslogtreecommitdiff
path: root/tests/allocate-failed.php
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-26 18:32:51 +0300
committerValery Piashchynski <[email protected]>2021-08-26 18:32:51 +0300
commitefb3efa98c8555815330274f0618bfc080f4c65c (patch)
treeb3bcabdb22fade6ef06d865d60995bc15f84cf1c /tests/allocate-failed.php
parent3212a5b59b6dcd8aa6edac137e945d42f6f9e0ce (diff)
Move drivers to the plugin's root.
Fix #771, add tests. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/allocate-failed.php')
-rw-r--r--tests/allocate-failed.php18
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(""));
+}