Skip to content

Commit

Permalink
Adding test for php-amqp#53
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrojny committed May 9, 2013
1 parent 2c6df29 commit 260ecdb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/bug_gh53.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--TEST--
Upgrade to RabbitMQ 3.1.0-1: AMQPConnectionException: connection closed unexpectedly
--SKIPIF--
<?php if (!extension_loaded("amqp")) print "skip"; ?>
--FILE--
<?php
$connection = new AMQPConnection();
$connection->connect();

$channel = new AMQPChannel($connection);
print_r($channel);

$channel->setPrefetchCount(10);
print_r($channel);

$channel->setPrefetchCount(3);
print_r($channel);


?>
==DONE==
--EXPECTF--
AMQPChannel Object
(
[channel_id] => 1
[prefetch_count] => 3
[prefetch_size] => 0
)
AMQPChannel Object
(
[channel_id] => 1
[prefetch_count] => 10
[prefetch_size] => 0
)
AMQPChannel Object
(
[channel_id] => 1
[prefetch_count] => 3
[prefetch_size] => 0
)
==DONE==

0 comments on commit 260ecdb

Please sign in to comment.