summaryrefslogtreecommitdiff
path: root/tests/allocate-failed.php
blob: 8514ecc0a933597dd9b38b04a08bd0a016474f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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(""));
}