File: amqpconnection_setPort_out_of_range.phpt

package info (click to toggle)
php-amqp 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,024 kB
  • ctags: 578
  • sloc: ansic: 4,223; xml: 784; php: 445; pascal: 42; makefile: 1
file content (15 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
AMQPConnection setPort with int out of range
--SKIPIF--
<?php if (!extension_loaded("amqp")) print "skip"; ?>
--FILE--
<?php
$cnn = new AMQPConnection();
try {
    $cnn->setPort(1234567890);
} catch (Exception $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
Invalid port given. Value must be between 1 and 65535.