<?php

namespace Hodor\MessageQueue;

use Exception;
use Hodor\MessageQueue\Adapter\Testing\Config;
use Hodor\MessageQueue\Adapter\Testing\Factory;
use PHPUnit_Framework_TestCase;

/**
 * @coversDefaultClass Hodor\MessageQueue\ProducerQueue
 */
class ProducerQueueTest extends PHPUnit_Framework_TestCase
{
    /**
     * @covers ::__construct
     * @covers ::push
     */
    public function testMessageCanBeProduced()
    {
        $expected_value = "hi there, " . uniqid();
        $pusher = function ($message) use ($expected_value) {
            $this->assertSame($expected_value, $message);
        };

        $producer_queue = new ProducerQueue($pusher);
        $producer_queue->push($expected_value);
    }
}

<?php

namespace Hodor\MessageQueue;

use PHPUnit_Framework_TestCase;

/**
 * @coversDefaultClass Hodor\MessageQueue\ProducerQueue
 */
class ProducerQueueTest extends PHPUnit_Framework_TestCase
{
    /**
     * @covers ::__construct
     * @covers ::push
     */
    public function testMessageCanBeProduced()
    {
        $expected_value = "hi there, " . uniqid();
        $pusher = function ($message) use ($expected_value) {
            $this->assertSame($expected_value, $message);
        };

        $producer_queue = new ProducerQueue($pusher);
        $producer_queue->push($expected_value);
    }
}

Remove unused imports from ProducerQueue
Remove unused imports from ProducerQueue
