<?php

namespace Werkspot\MessageQueue\ScheduledQueue\Repository;

use Werkspot\MessageQueue\Message\MessageInterface;

interface MessageRepositoryInterface
{
    /**
     * The maximum number of message delivery tries
     */
    const MAXIMUM_DELIVERY_TRIES = 4;

    public function find(string $id): MessageInterface;

    /**
     * @return MessageInterface[]
     */
    public function findAll(): array;

    /**
     * @return MessageInterface[]
     */
    public function findMessagesToDeliver(int $limit): array;

    public function save(MessageInterface $message): void;

    public function delete(MessageInterface $message): void;
}

<?php

namespace Werkspot\MessageQueue\ScheduledQueue\Repository;

use Werkspot\MessageQueue\Message\MessageInterface;

interface MessageRepositoryInterface
{
    /**
     * The maximum number of message delivery tries
     */
    const MAXIMUM_DELIVERY_TRIES = 4;

    /**
     * @return MessageInterface[]
     */
    public function findAll(): array;

    /**
     * @return MessageInterface[]
     */
    public function findMessagesToDeliver(int $limit): array;

    public function save(MessageInterface $message): void;

    public function delete(MessageInterface $message): void;
}

Make the MessageQueueBundle tests independent of instapro test framework
Make the MessageQueueBundle tests independent of instapro test framework
