--TEST-- Test events --SKIPIF-- --FILE-- getSocket(ZMQ::SOCKET_DEALER); $client->monitor("inproc://socket-monitor"); $monitor = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_PAIR); $monitor->connect("inproc://socket-monitor"); $server = $context->getSocket(ZMQ::SOCKET_DEALER); $server->bind("tcp://*:5050"); $client->connect("tcp://127.0.0.1:5050"); $event = $monitor->recvEvent(); var_dump ($event, $event["event"] == ZMQ::EVENT_CONNECT_DELAYED); $event = $monitor->recvEvent(); var_dump ($event, $event["event"] == ZMQ::EVENT_CONNECTED); echo "OK"; --EXPECTF-- array(3) { ["event"]=> int(2) ["value"]=> int(%d) ["address"]=> string(20) "tcp://127.0.0.1:5050" } bool(true) array(3) { ["event"]=> int(1) ["value"]=> int(%d) ["address"]=> string(20) "tcp://127.0.0.1:5050" } bool(true) OK