gnu-social/vendor/queue-interop/queue-interop/tests/Impl/MessageTest.php
2021-07-16 19:44:33 +01:00

28 lines
673 B
PHP

<?php
declare(strict_types=1);
namespace Interop\Queue\Tests\Impl;
use Interop\Queue\Message;
use Interop\Queue\Spec\MessageSpec;
use Interop\Queue\Impl\MessageTrait;
class MessageTest extends MessageSpec
{
protected function createMessage(): Message
{
return new class implements Message
{
use MessageTrait;
public function __construct(string $body = '', array $properties = [], array $headers = [])
{
$this->body = $body;
$this->properties = $properties;
$this->headers = $headers;
$this->redelivered = false;
}
};
}
}