Skip to content

Commit 58c46d7

Browse files
author
Mathieu Lemoine
committed
drop support for Symfony < 4.3
1 parent a6f398b commit 58c46d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/MongodbConsumerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class InvalidMessage implements Message
133133
{
134134
public function getBody(): string
135135
{
136+
throw new \BadMethodCallException('This should not be called directly');
136137
}
137138

138139
public function setBody(string $body): void
@@ -145,6 +146,7 @@ public function setProperties(array $properties): void
145146

146147
public function getProperties(): array
147148
{
149+
throw new \BadMethodCallException('This should not be called directly');
148150
}
149151

150152
public function setProperty(string $name, $value): void
@@ -161,6 +163,7 @@ public function setHeaders(array $headers): void
161163

162164
public function getHeaders(): array
163165
{
166+
throw new \BadMethodCallException('This should not be called directly');
164167
}
165168

166169
public function setHeader(string $name, $value): void
@@ -177,6 +180,7 @@ public function setRedelivered(bool $redelivered): void
177180

178181
public function isRedelivered(): bool
179182
{
183+
throw new \BadMethodCallException('This should not be called directly');
180184
}
181185

182186
public function setCorrelationId(string $correlationId = null): void
@@ -185,6 +189,7 @@ public function setCorrelationId(string $correlationId = null): void
185189

186190
public function getCorrelationId(): ?string
187191
{
192+
throw new \BadMethodCallException('This should not be called directly');
188193
}
189194

190195
public function setMessageId(string $messageId = null): void
@@ -193,10 +198,12 @@ public function setMessageId(string $messageId = null): void
193198

194199
public function getMessageId(): ?string
195200
{
201+
throw new \BadMethodCallException('This should not be called directly');
196202
}
197203

198204
public function getTimestamp(): ?int
199205
{
206+
throw new \BadMethodCallException('This should not be called directly');
200207
}
201208

202209
public function setTimestamp(int $timestamp = null): void
@@ -209,5 +216,6 @@ public function setReplyTo(string $replyTo = null): void
209216

210217
public function getReplyTo(): ?string
211218
{
219+
throw new \BadMethodCallException('This should not be called directly');
212220
}
213221
}

0 commit comments

Comments
 (0)