@@ -32,7 +32,7 @@ public function testShouldReceiveFromQueueAndReturnNullIfNoMessageInQueue()
32
32
$ destination = new RdKafkaTopic ('dest ' );
33
33
34
34
$ kafkaMessage = new Message ();
35
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR__TIMED_OUT ;
35
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR__TIMED_OUT ;
36
36
37
37
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
38
38
$ kafkaConsumer
@@ -61,7 +61,7 @@ public function testShouldPassProperlyConfiguredTopicPartitionOnAssign()
61
61
$ destination = new RdKafkaTopic ('dest ' );
62
62
63
63
$ kafkaMessage = new Message ();
64
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR__TIMED_OUT ;
64
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR__TIMED_OUT ;
65
65
66
66
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
67
67
$ kafkaConsumer
@@ -91,7 +91,7 @@ public function testShouldSubscribeOnFirstReceiveOnly()
91
91
$ destination = new RdKafkaTopic ('dest ' );
92
92
93
93
$ kafkaMessage = new Message ();
94
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR__TIMED_OUT ;
94
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR__TIMED_OUT ;
95
95
96
96
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
97
97
$ kafkaConsumer
@@ -122,7 +122,7 @@ public function testShouldAssignWhenOffsetIsSet()
122
122
$ destination ->setPartition (1 );
123
123
124
124
$ kafkaMessage = new Message ();
125
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR__TIMED_OUT ;
125
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR__TIMED_OUT ;
126
126
127
127
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
128
128
$ kafkaConsumer
@@ -154,7 +154,7 @@ public function testThrowOnOffsetChangeAfterSubscribing()
154
154
$ destination = new RdKafkaTopic ('dest ' );
155
155
156
156
$ kafkaMessage = new Message ();
157
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR__TIMED_OUT ;
157
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR__TIMED_OUT ;
158
158
159
159
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
160
160
$ kafkaConsumer
@@ -188,7 +188,7 @@ public function testShouldReceiveFromQueueAndReturnMessageIfMessageInQueue()
188
188
$ expectedMessage = new RdKafkaMessage ('theBody ' , ['foo ' => 'fooVal ' ], ['bar ' => 'barVal ' ]);
189
189
190
190
$ kafkaMessage = new Message ();
191
- $ kafkaMessage ->err = RD_KAFKA_RESP_ERR_NO_ERROR ;
191
+ $ kafkaMessage ->err = \ RD_KAFKA_RESP_ERR_NO_ERROR ;
192
192
$ kafkaMessage ->payload = 'theSerializedMessage ' ;
193
193
194
194
$ kafkaConsumer = $ this ->createKafkaConsumerMock ();
0 commit comments