--TEST-- AMQPConnection parameter validation --SKIPIF-- --FILE-- $value]); echo $getter . " after constructor: "; echo $con1->{$getter}(); echo PHP_EOL; } catch (\Throwable $t) { echo get_class($t); echo ": "; echo $t->getMessage(); echo PHP_EOL; } if ($setter === null) { continue; } $con2 = new AMQPConnection(); try { $con2->{$setter}($value); echo $getter . " after setter: "; echo $con2->{$getter}(); echo PHP_EOL; } catch (\Throwable $t) { echo get_class($t); echo ": "; echo $t->getMessage(); echo PHP_EOL; } } } ?> ==DONE== --EXPECTF-- AMQPConnectionException: Parameter 'login' exceeds 1024 character limit. AMQPConnectionException: Parameter 'login' exceeds 1024 character limit. getLogin after constructor: user getLogin after setter: user AMQPConnectionException: Parameter 'password' exceeds 1024 character limit. AMQPConnectionException: Parameter 'password' exceeds 1024 character limit. getPassword after constructor: pass getPassword after setter: pass AMQPConnectionException: Parameter 'host' exceeds 512 character limit. AMQPConnectionException: Parameter 'host' exceeds 512 character limit. getHost after constructor: host getHost after setter: host AMQPConnectionException: Parameter 'vhost' exceeds 512 character limit. AMQPConnectionException: Parameter 'vhost' exceeds 512 characters limit. getVhost after constructor: vhost getVhost after setter: vhost AMQPConnectionException: Parameter 'port' must be a valid port number between 1 and 65535. AMQPConnectionException: Parameter 'port' must be a valid port number between 1 and 65535. AMQPConnectionException: Parameter 'port' must be a valid port number between 1 and 65535. AMQPConnectionException: Parameter 'port' must be a valid port number between 1 and 65535. getPort after constructor: 1234 getPort after setter: 1234 Deprecated: AMQPConnection::__construct(): Parameter 'timeout' is deprecated; use 'read_timeout' instead in %s on line %d AMQPConnectionException: Parameter 'timeout' must be greater than or equal to zero. Deprecated: AMQPConnection::setTimeout(): AMQPConnection::setTimeout($timeout) method is deprecated; use AMQPConnection::setReadTimeout($timeout) instead in %s on line %d AMQPConnectionException: Parameter 'timeout' must be greater than or equal to zero. AMQPConnectionException: Parameter 'read_timeout' must be greater than or equal to zero. AMQPConnectionException: Parameter 'readTimeout' must be greater than or equal to zero. getReadTimeout after constructor: 20 getReadTimeout after setter: 20 AMQPConnectionException: Parameter 'write_timeout' must be greater than or equal to zero. AMQPConnectionException: Parameter 'writeTimeout' must be greater than or equal to zero. getWriteTimeout after constructor: 30 getWriteTimeout after setter: 30 AMQPConnectionException: Parameter 'connect_timeout' must be greater than or equal to zero. getConnectTimeout after constructor: 40 AMQPConnectionException: Parameter 'rpc_timeout' must be greater than or equal to zero. AMQPConnectionException: Parameter 'rpcTimeout' must be greater than or equal to zero. getRpcTimeout after constructor: 50 getRpcTimeout after setter: 50 AMQPConnectionException: Parameter 'frame_max' is out of range. AMQPConnectionException: Parameter 'frame_max' is out of range. getMaxFrameSize after constructor: 128 AMQPConnectionException: Parameter 'channel_max' is out of range. AMQPConnectionException: Parameter 'channel_max' is out of range. getMaxChannels after constructor: 128 AMQPConnectionException: Parameter 'heartbeat' is out of range. AMQPConnectionException: Parameter 'heartbeat' is out of range. getHeartbeatInterval after constructor: 250 getHeartbeatInterval after constructor: 0 ==DONE==