Viewing File: /opt/alt/tests/alt-php83-pecl-zmq_1.1.3-1.84f0720.el8/tests/045-auth-allow-deny.phpt

--TEST--
Test a ZMQAuth can whitelist or blacklist an IP address.
--SKIPIF--
<?php
	require_once __DIR__ . '/skipif.inc';
	require_once __DIR__ . '/skipif-czmq2.inc';
--FILE--
<?php

$context = new ZMQContext();
$auth = new ZMQAuth($context);
var_dump($auth->allow('127.0.0.1') === $auth);
var_dump($auth->deny('192.168.0.1') === $auth);
--EXPECT--
bool(true)
bool(true)
Back to Directory File Manager
<