Skip to content

Commit f3db407

Browse files
author
Mathieu Lemoine
committed
drop support for Symfony < 4.3
1 parent c7ba79a commit f3db407

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/DbalConsumerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ class InvalidMessage implements Message
220220
{
221221
public function getBody(): string
222222
{
223+
throw new \BadMethodCallException('This should not be called directly');
223224
}
224225

225226
public function setBody(string $body): void
@@ -232,6 +233,7 @@ public function setProperties(array $properties): void
232233

233234
public function getProperties(): array
234235
{
236+
throw new \BadMethodCallException('This should not be called directly');
235237
}
236238

237239
public function setProperty(string $name, $value): void
@@ -248,6 +250,7 @@ public function setHeaders(array $headers): void
248250

249251
public function getHeaders(): array
250252
{
253+
throw new \BadMethodCallException('This should not be called directly');
251254
}
252255

253256
public function setHeader(string $name, $value): void
@@ -264,6 +267,7 @@ public function setRedelivered(bool $redelivered): void
264267

265268
public function isRedelivered(): bool
266269
{
270+
throw new \BadMethodCallException('This should not be called directly');
267271
}
268272

269273
public function setCorrelationId(string $correlationId = null): void
@@ -272,6 +276,7 @@ public function setCorrelationId(string $correlationId = null): void
272276

273277
public function getCorrelationId(): ?string
274278
{
279+
throw new \BadMethodCallException('This should not be called directly');
275280
}
276281

277282
public function setMessageId(string $messageId = null): void
@@ -280,10 +285,12 @@ public function setMessageId(string $messageId = null): void
280285

281286
public function getMessageId(): ?string
282287
{
288+
throw new \BadMethodCallException('This should not be called directly');
283289
}
284290

285291
public function getTimestamp(): ?int
286292
{
293+
throw new \BadMethodCallException('This should not be called directly');
287294
}
288295

289296
public function setTimestamp(int $timestamp = null): void
@@ -296,5 +303,6 @@ public function setReplyTo(string $replyTo = null): void
296303

297304
public function getReplyTo(): ?string
298305
{
306+
throw new \BadMethodCallException('This should not be called directly');
299307
}
300308
}

0 commit comments

Comments
 (0)