File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
pkg/enqueue/Tests/Consumption Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,6 @@ public function testThrowIfQueueNeitherInstanceOfQueueNorString()
101
101
$ consumer ->bind (new \stdClass (), $ processorMock );
102
102
}
103
103
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
-
113
104
public function testCouldSetGetIdleTimeout ()
114
105
{
115
106
$ consumer = new QueueConsumer ($ this ->createPsrContextStub (), null , 0 );
@@ -146,7 +137,7 @@ public function testShouldAllowBindCallbackToQueueName()
146
137
147
138
$ consumer = new QueueConsumer ($ context , null , 0 );
148
139
149
- $ consumer ->bind ($ queueName , $ callback );
140
+ $ consumer ->bindCallback ($ queueName , $ callback );
150
141
151
142
$ boundProcessors = $ this ->readAttribute ($ consumer , 'boundProcessors ' );
152
143
You can’t perform that action at this time.
0 commit comments