We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7898752 commit ff56cf4Copy full SHA for ff56cf4
1 file changed
tests/DatabaseHandlerTest.php
@@ -212,6 +212,15 @@ public function testPushAndPopWithDelay(): void
212
$this->assertSame($payload, $result->payload);
213
}
214
215
+ public function testPushWithDelayException(): void
216
+ {
217
+ $this->expectException(QueueException::class);
218
+ $this->expectExceptionMessage('The number of seconds of delay must be a positive integer.');
219
+
220
+ $handler = new DatabaseHandler($this->config);
221
+ $handler->setDelay(-60);
222
+ }
223
224
/**
225
* @throws ReflectionException
226
*/
0 commit comments