X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-pecl-amqp_2.1.2-1.el8/tests
opt
/
alt
/
tests
/
alt-php80-pecl-amqp_2.1.2-1.el8
/
tests
/
ðŸ“
..
📄
_test_helpers.php.inc
(2.19 KB)
📄
amqp_version.phpt
(485 B)
📄
amqpbasicproperties.phpt
(3.59 KB)
📄
amqpbasicproperties_nullability.phpt
(1.79 KB)
📄
amqpconnection_construct_ini_read_timeout.phpt
(443 B)
📄
amqpconnection_construct_ini_timeout.phpt
(558 B)
📄
amqpconnection_construct_ini_timeout_and_read_timeout.phpt
(743 B)
📄
amqpconnection_construct_ini_timeout_default.phpt
(477 B)
📄
amqpconnection_construct_params_by_value.phpt
(1.02 KB)
📄
amqpconnection_construct_with_connection_name.phpt
(607 B)
📄
amqpconnection_construct_with_rpc_timeout.phpt
(338 B)
📄
amqpconnection_construct_with_timeout.phpt
(445 B)
📄
amqpconnection_construct_with_timeout_and_read_timeout.phpt
(500 B)
📄
amqpconnection_construct_with_verify_false.phpt
(318 B)
📄
amqpconnection_construct_with_write_timeout.phpt
(342 B)
📄
amqpconnection_nullable_setters.phpt
(955 B)
📄
amqpconnection_setConnectionName.phpt
(564 B)
📄
amqpconnection_setHost.phpt
(313 B)
📄
amqpconnection_setLogin.phpt
(447 B)
📄
amqpconnection_setPassword.phpt
(459 B)
📄
amqpconnection_setPort_int.phpt
(449 B)
📄
amqpconnection_setPort_out_of_range.phpt
(496 B)
📄
amqpconnection_setPort_string.phpt
(457 B)
📄
amqpconnection_setReadTimeout_float.phpt
(480 B)
📄
amqpconnection_setReadTimeout_int.phpt
(397 B)
📄
amqpconnection_setReadTimeout_out_of_range.phpt
(414 B)
📄
amqpconnection_setReadTimeout_string.phpt
(485 B)
📄
amqpconnection_setRpcTimeout_float.phpt
(583 B)
📄
amqpconnection_setRpcTimeout_int.phpt
(442 B)
📄
amqpconnection_setRpcTimeout_out_of_range.phpt
(545 B)
📄
amqpconnection_setRpcTimeout_string.phpt
(598 B)
📄
amqpconnection_setSaslMethod.phpt
(629 B)
📄
amqpconnection_setSaslMethod_invalid.phpt
(573 B)
📄
amqpconnection_setTimeout_deprecated.phpt
(549 B)
📄
amqpconnection_setTimeout_float.phpt
(946 B)
📄
amqpconnection_setTimeout_int.phpt
(561 B)
📄
amqpconnection_setTimeout_out_of_range.phpt
(565 B)
📄
amqpconnection_setTimeout_string.phpt
(951 B)
📄
amqpconnection_setVhost.phpt
(443 B)
📄
amqpconnection_setWriteTimeout_float.phpt
(485 B)
📄
amqpconnection_setWriteTimeout_int.phpt
(400 B)
📄
amqpconnection_setWriteTimeout_out_of_range.phpt
(551 B)
📄
amqpconnection_setWriteTimeout_string.phpt
(491 B)
📄
amqpconnection_validation.phpt
(5.01 KB)
📄
amqpdecimal.phpt
(1.28 KB)
📄
amqpenvelope_construct.phpt
(1.29 KB)
📄
amqpexchange_declare_with_stalled_reference.phpt
(856 B)
📄
amqpqueue_declare_with_stalled_reference.phpt
(838 B)
📄
amqpqueue_purge_basic.phpt
(142 B)
📄
amqptimestamp.phpt
(1.08 KB)
📄
bug_62354.phpt
(595 B)
📄
ini_validation_failure.phpt
(4.4 KB)
📄
testtest.phpt
(1.77 KB)
Editing: amqpconnection_validation.phpt
--TEST-- AMQPConnection parameter validation --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded"; ?> --FILE-- <?php $parameters = [ ['login', 'setLogin', 'getLogin', [str_repeat('X', 1025), 'user']], ['password', 'setPassword', 'getPassword', [str_repeat('X', 1025), 'pass']], ['host', 'setHost', 'getHost', [str_repeat('X', 513), 'host']], ['vhost', 'setVhost', 'getVhost', [str_repeat('X', 513), 'vhost']], ['port', 'setPort', 'getPort', [-1, 65536, 1234]], ['timeout', 'setTimeout', 'getTimeout', [-1], 10], ['read_timeout', 'setReadTimeout', 'getReadTimeout', [-1, 20]], ['write_timeout', 'setWriteTimeout', 'getWriteTimeout', [-1, 30]], ['connect_timeout', null, 'getConnectTimeout', [-1, 40]], ['rpc_timeout', 'setRpcTimeout', 'getRpcTimeout', [-1, 50]], ['frame_max', null, 'getMaxFrameSize', [-1, PHP_INT_MAX + 1, 128]], ['channel_max', null, 'getMaxChannels', [-1, 257, 128]], ['heartbeat', null, 'getHeartbeatInterval', [-1, PHP_INT_MAX + 1, 250, 0]], ]; foreach ($parameters as $args) { list($prop, $setter, $getter, $values) = $args; foreach ($values as $value) { try { $con1 = new AMQPConnection([$prop => $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==
Upload File
Create Folder