File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 13
13
14
14
class DbalConsumer implements Consumer
15
15
{
16
- use ConsumerPollingTrait,
17
- DbalConsumerHelperTrait;
16
+ use ConsumerPollingTrait;
17
+ use DbalConsumerHelperTrait;
18
18
19
19
/**
20
20
* @var DbalContext
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class DbalMessage implements Message
49
49
private $ timeToLive ;
50
50
51
51
/**
52
- * @var null| string
52
+ * @var string|null
53
53
*/
54
54
private $ deliveryId ;
55
55
Original file line number Diff line number Diff line change @@ -79,12 +79,12 @@ public function testShouldDeleteMessageOnAcknowledge()
79
79
$ context
80
80
->expects ($ this ->once ())
81
81
->method ('getDbalConnection ' )
82
- ->will ( $ this -> returnValue ( $ dbal) )
82
+ ->willReturn ( $ dbal )
83
83
;
84
84
$ context
85
85
->expects ($ this ->once ())
86
86
->method ('getTableName ' )
87
- ->will ( $ this -> returnValue ( 'some-table-name ' ) )
87
+ ->willReturn ( 'some-table-name ' )
88
88
;
89
89
90
90
$ consumer = new DbalConsumer ($ context , $ queue );
@@ -150,12 +150,12 @@ public function testShouldDeleteMessageFromQueueOnReject()
150
150
$ context
151
151
->expects ($ this ->once ())
152
152
->method ('getDbalConnection ' )
153
- ->will ( $ this -> returnValue ( $ dbal) )
153
+ ->willReturn ( $ dbal )
154
154
;
155
155
$ context
156
156
->expects ($ this ->once ())
157
157
->method ('getTableName ' )
158
- ->will ( $ this -> returnValue ( 'some-table-name ' ) )
158
+ ->willReturn ( 'some-table-name ' )
159
159
;
160
160
161
161
$ consumer = new DbalConsumer ($ context , $ queue );
@@ -182,7 +182,7 @@ public function testRejectShouldReSendMessageToSameQueueOnRequeue()
182
182
$ context
183
183
->expects ($ this ->once ())
184
184
->method ('createProducer ' )
185
- ->will ( $ this -> returnValue ( $ producerMock) )
185
+ ->willReturn ( $ producerMock )
186
186
;
187
187
188
188
$ consumer = new DbalConsumer ($ context , $ queue );
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ private function createDbalContextMock()
153
153
}
154
154
155
155
/**
156
- * @param null| mixed $queueName
156
+ * @param mixed|null $queueName
157
157
*
158
158
* @return Consumer|\PHPUnit_Framework_MockObject_MockObject
159
159
*/
You can’t perform that action at this time.
0 commit comments