Skip to content

Commit b46b5fb

Browse files
committed
fix tests.
1 parent f3cf408 commit b46b5fb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pkg/enqueue/Tests/Consumption/QueueConsumerTest.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,6 @@ public function testThrowIfQueueNeitherInstanceOfQueueNorString()
101101
$consumer->bind(new \stdClass(), $processorMock);
102102
}
103103

104-
public function testThrowIfProcessorNeitherInstanceOfProcessorNorCallable()
105-
{
106-
$consumer = new QueueConsumer($this->createPsrContextStub(), null, 0);
107-
108-
$this->expectException(InvalidArgumentException::class);
109-
$this->expectExceptionMessage('The argument must be an instance of Interop\Queue\PsrProcessor but got stdClass.');
110-
$consumer->bind(new NullQueue(''), new \stdClass());
111-
}
112-
113104
public function testCouldSetGetIdleTimeout()
114105
{
115106
$consumer = new QueueConsumer($this->createPsrContextStub(), null, 0);
@@ -146,7 +137,7 @@ public function testShouldAllowBindCallbackToQueueName()
146137

147138
$consumer = new QueueConsumer($context, null, 0);
148139

149-
$consumer->bind($queueName, $callback);
140+
$consumer->bindCallback($queueName, $callback);
150141

151142
$boundProcessors = $this->readAttribute($consumer, 'boundProcessors');
152143

0 commit comments

Comments
 (0)