PATH:
opt
/
alt
/
tests
/
alt-php70-pecl-amqp_1.11.0-1.el8
/
tests
--TEST-- AMQPTimestamp --SKIPIF-- <?php if (!extension_loaded("amqp") || version_compare(PHP_VERSION, '5.3', '<') || version_compare(PHP_VERSION, '8.0', '>')) { print "skip"; } --FILE-- <?php $timestamp = new AMQPTimestamp(100000); var_dump($timestamp->getTimestamp(), (string) $timestamp); $timestamp = new AMQPTimestamp(100000.1); var_dump($timestamp->getTimestamp(), (string) $timestamp); new AMQPTimestamp(); new AMQPTimestamp("string"); try { new AMQPTimestamp(AMQPTimestamp::MIN - 1); } catch (AMQPValueException $e) { echo $e->getMessage() . "\n"; } try { new AMQPTimestamp(INF); } catch (AMQPValueException $e) { echo $e->getMessage() . "\n"; } var_dump((new ReflectionClass("AMQPTimestamp"))->isFinal()); var_dump(AMQPTimestamp::MAX); var_dump(AMQPTimestamp::MIN); ?> ==END== --EXPECTF-- string(6) "100000" string(6) "100000" string(6) "100000" string(6) "100000" Warning: AMQPTimestamp::__construct() expects exactly 1 parameter, 0 given in %s on line %d Warning: AMQPTimestamp::__construct() expects parameter 1 to be %s, string given in %s on line %d The timestamp parameter must be greater than 0. The timestamp parameter must be less than 18446744073709551616. bool(true) string(20) "18446744073709551616" string(1) "0" ==END==
[-] amqpqueue_declare_with_stalled_reference.phpt
[edit]
[-] amqpconnection_setPort_string.phpt
[edit]
[-] amqpconnection_construct_with_connection_name.phpt
[edit]
[-] amqpconnection_setTimeout_deprecated.phpt
[edit]
[-] amqpconnection_construct_ini_timeout_default.phpt
[edit]
[-] amqpconnection_setReadTimeout_out_of_range.phpt
[edit]
[-] amqpconnection_construct_ini_read_timeout.phpt
[edit]
[-] amqpconnection_construct_params_by_value.phpt
[edit]
[-] amqpconnection_setRpcTimeout_out_of_range.phpt
[edit]
[-] amqptimestamp_php8.phpt
[edit]
[-] amqpconnection_setPort_out_of_range.phpt
[edit]
[-] amqpconnection_setWriteTimeout_string.phpt
[edit]
[-] amqpconnection_setWriteTimeout_float.phpt
[edit]
[-] amqpconnection_setTimeout_string.phpt
[edit]
[-] amqpconnection_setTimeout_int.phpt
[edit]
[-] amqpconnection_construct_ini_timeout.phpt
[edit]
[-] amqpconnection_setPort_int.phpt
[edit]
[-] bug_62354.phpt
[edit]
[-] amqpconnection_setRpcTimeout_int.phpt
[edit]
[-] _test_helpers.php.inc
[edit]
[-] amqpconnection_setTimeout_float.phpt
[edit]
[-] amqpconnection_setReadTimeout_int.phpt
[edit]
[-] amqpconnection_setLogin.phpt
[edit]
[-] amqpconnection_setReadTimeout_float.phpt
[edit]
[-] amqpconnection_setHost.phpt
[edit]
[-] amqpexchange_declare_with_stalled_reference.phpt
[edit]
[-] amqpconnection_construct_with_write_timeout.phpt
[edit]
[-] amqpconnection_setWriteTimeout_out_of_range.phpt
[edit]
[-] amqpconnection_setSaslMethod_invalid.phpt
[edit]
[-] amqpconnection_setPassword.phpt
[edit]
[-] amqpconnection_setSaslMethod.phpt
[edit]
[-] amqpconnection_setWriteTimeout_int.phpt
[edit]
[-] amqpenvelope_construct.phpt
[edit]
[-] amqpqueue_purge_basic.phpt
[edit]
[-] amqpdecimal.phpt
[edit]
[-] amqpconnection_construct_with_rpc_timeout.phpt
[edit]
[-] amqpconnection_setConnectionName.phpt
[edit]
[-] amqpconnection_setVhost.phpt
[edit]
[-] amqpbasicproperties.phpt
[edit]
[-] amqpconnection_setRpcTimeout_float.phpt
[edit]
[-] amqpconnection_construct_ini_timeout_and_read_timeout.phpt
[edit]
[-] amqpconnection_setReadTimeout_string.phpt
[edit]
[+]
..
[-] amqpconnection_setTimeout_out_of_range.phpt
[edit]
[-] amqpconnection_construct_with_timeout.phpt
[edit]
[-] amqpconnection_construct_with_timeout_and_read_timeout.phpt
[edit]
[-] amqpconnection_setRpcTimeout_string.phpt
[edit]
[-] amqptimestamp.phpt
[edit]