We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aee8444 + 948278b commit 1542bd0Copy full SHA for 1542bd0
1 file changed
test/scripts/bunny-consumer.php
@@ -11,8 +11,10 @@
11
use Bunny\Client;
12
use Bunny\Message;
13
use React\EventLoop\Loop;
14
+use RuntimeException;
15
use function Bunny\Test\Library\parseAmqpUri;
16
use function array_shift;
17
+use function count;
18
use function pcntl_signal;
19
use const SIGINT;
20
@@ -44,6 +46,14 @@ function app(array $args): void
44
46
});
45
47
}
48
49
+if (!isset($argv)) {
50
+ throw new RuntimeException('No argv found');
51
+}
52
+
53
+if (count($argv) < 4) {
54
+ throw new RuntimeException('Expecting at least 3 arguments, got ' . (count($argv) - 1));
55
56
57
$argvCopy = $argv;
58
59
array_shift($argvCopy);
0 commit comments