diff options
Diffstat (limited to 'php/tests/error.php')
-rw-r--r-- | php/tests/error.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/php/tests/error.php b/php/tests/error.php new file mode 100644 index 00000000..ebd3418b --- /dev/null +++ b/php/tests/error.php @@ -0,0 +1,13 @@ +<?php +/** + * @var Goridge\RelayInterface $relay + */ + +use Spiral\Goridge; +use Spiral\RoadRunner; + +$rr = new RoadRunner\Worker($relay); + +while ($in = $rr->receive($ctx)) { + $rr->error((string)$in); +}
\ No newline at end of file |