Skip to content

Commit b3139cd

Browse files
committed
fix tests
1 parent 383a934 commit b3139cd

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

‎pkg/amqp-lib/Tests/Spec/AmqpSendToTopicAndReceiveFromQueueWithBasicConsumeMethodTest.php‎

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -26,48 +26,6 @@ protected function createContext()
2626
return $factory->createContext();
2727
}
2828

29-
// public function test()
30-
// {
31-
// $context = $this->createContext();
32-
//
33-
// $topic = $context->createTopic('send_to_topic_and_receive_from_queue_spec_basic_consume');
34-
// $topic->setType(AmqpTopic::TYPE_FANOUT);
35-
// $topic->addFlag(AmqpTopic::FLAG_DURABLE);
36-
//
37-
// try {
38-
// $context->deleteTopic($topic);
39-
// } catch (\Exception $e) {}
40-
//
41-
// $context->declareTopic($topic);
42-
//
43-
// $queue = $context->createQueue('send_to_topic_and_receive_from_queue_spec_basic_consume');
44-
//
45-
// try {
46-
// $context->deleteQueue($queue);
47-
// } catch (\Exception $e) {}
48-
//
49-
// $context->declareQueue($queue);
50-
// $context->purgeQueue($queue);
51-
//
52-
// $context->bind(new AmqpBind($topic, $queue));
53-
//
54-
// $consumer = $context->createConsumer($queue);
55-
//
56-
// // guard
57-
// $this->assertNull($consumer->receiveNoWait());
58-
//
59-
// $expectedBody = __CLASS__.time();
60-
//
61-
// $context->createProducer()->send($topic, $context->createMessage($expectedBody));
62-
//
63-
// $message = $consumer->receive(2000); // 2 sec
64-
//
65-
// $this->assertInstanceOf(PsrMessage::class, $message);
66-
// $consumer->acknowledge($message);
67-
//
68-
// $this->assertSame($expectedBody, $message->getBody());
69-
// }
70-
7129
/**
7230
* {@inheritdoc}
7331
*

0 commit comments

Comments
 (0)