@@ -35,7 +35,7 @@ class QueueConsumerTest extends TestCase
3535{
3636 public function testCouldBeConstructedWithAllArguments ()
3737 {
38- new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 , 0 );
38+ new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 );
3939 }
4040
4141 public function testCouldBeConstructedWithContextOnly ()
@@ -50,7 +50,7 @@ public function testCouldBeConstructedWithContextAndSingleExtension()
5050
5151 public function testShouldSetEmptyArrayToBoundProcessorsPropertyInConstructor ()
5252 {
53- $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 , 0 );
53+ $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 );
5454
5555 $ this ->assertAttributeSame ([], 'boundProcessors ' , $ consumer );
5656 }
@@ -62,14 +62,14 @@ public function testShouldSetProvidedBoundProcessorsToThePropertyInConstructor()
6262 new BoundProcessor (new NullQueue ('bar ' ), $ this ->createProcessorMock ()),
6363 ];
6464
65- $ consumer = new QueueConsumer ($ this ->createContextStub (), null , $ boundProcessors , null , 0 , 0 );
65+ $ consumer = new QueueConsumer ($ this ->createContextStub (), null , $ boundProcessors , null , 0 );
6666
6767 $ this ->assertAttributeSame ($ boundProcessors , 'boundProcessors ' , $ consumer );
6868 }
6969
7070 public function testShouldSetNullLoggerIfNoneProvidedInConstructor ()
7171 {
72- $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 , 0 );
72+ $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], null , 0 );
7373
7474 $ this ->assertAttributeInstanceOf (NullLogger::class, 'logger ' , $ consumer );
7575 }
@@ -78,7 +78,7 @@ public function testShouldSetProvidedLoggerToThePropertyInConstructor()
7878 {
7979 $ expectedLogger = $ this ->createMock (LoggerInterface::class);
8080
81- $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], $ expectedLogger , 0 , 0 );
81+ $ consumer = new QueueConsumer ($ this ->createContextStub (), null , [], $ expectedLogger , 0 );
8282
8383 $ this ->assertAttributeSame ($ expectedLogger , 'logger ' , $ consumer );
8484 }
@@ -87,7 +87,7 @@ public function testShouldAllowGetContextSetInConstructor()
8787 {
8888 $ expectedContext = $ this ->createContextStub ();
8989
90- $ consumer = new QueueConsumer ($ expectedContext , null , [], null , 0 , 0 );
90+ $ consumer = new QueueConsumer ($ expectedContext , null , [], null , 0 );
9191
9292 $ this ->assertSame ($ expectedContext , $ consumer ->getContext ());
9393 }
@@ -143,15 +143,6 @@ public function testThrowIfQueueNeitherInstanceOfQueueNorString()
143143 $ consumer ->bind (new \stdClass (), $ processorMock );
144144 }
145145
146- public function testCouldSetGetIdleTime ()
147- {
148- $ consumer = new QueueConsumer ($ this ->createContextStub ());
149-
150- $ consumer ->setIdleTime (123456 );
151-
152- $ this ->assertSame (123456 , $ consumer ->getIdleTime ());
153- }
154-
155146 public function testCouldSetGetReceiveTimeout ()
156147 {
157148 $ consumer = new QueueConsumer ($ this ->createContextStub ());
@@ -311,7 +302,7 @@ public function testShouldSubscribeToGivenQueueWithExpectedTimeout()
311302 ->method ('process ' )
312303 ;
313304
314- $ queueConsumer = new QueueConsumer ($ contextMock , new BreakCycleExtension (1 ), [], null , 0 , 12345 );
305+ $ queueConsumer = new QueueConsumer ($ contextMock , new BreakCycleExtension (1 ), [], null , 12345 );
315306 $ queueConsumer ->setFallbackSubscriptionConsumer ($ subscriptionConsumerMock );
316307 $ queueConsumer ->bind ($ expectedQueue , $ processorMock );
317308 $ queueConsumer ->consume ();
0 commit comments