2017 © Pedro Peláez
 

library queue-spec

image

queue-interop/queue-spec

  • Thursday, April 5, 2018
  • by makasim
  • Repository
  • 2 Watchers
  • 1 Stars
  • 8,255 Installations
  • PHP
  • 14 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 9 % Grown

The README.md

Queue Interoperability

This package could come in handy for everyone who wants to build an implementation and make sure it meets its requirements. The spec class is nothing special but a Phpunit test case. It has to be extended and the abstract methods are implemented.
After you can use them as tests for your transport. Some of the specs require an interaction with a real broker., (*1)

Example

Here's an example of the spec for Gearman connection factory class:, (*2)

<?php

namespace Enqueue\Gearman\Tests\Spec;

use Enqueue\Gearman\GearmanConnectionFactory;
use Interop\Queue\Spec\PsrConnectionFactorySpec;

class GearmanConnectionFactoryTest extends PsrConnectionFactorySpec
{
    protected function createConnectionFactory()
    {
        return new GearmanConnectionFactory();
    }
}

License

MIT license, (*3)

The Versions

05/04 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

05/04 2018
06/03 2018
14/02 2018

0.5.5

0.5.5.0

  Sources   Download

MIT

The Requires

 

14/12 2017

0.5.4

0.5.4.0

  Sources   Download

MIT

The Requires

 

12/10 2017

0.5.3

0.5.3.0

  Sources   Download

MIT

The Requires

 

11/10 2017

0.5.2

0.5.2.0

  Sources   Download

MIT

The Requires

 

11/10 2017

0.5.1

0.5.1.0

  Sources   Download

MIT

The Requires

 

07/07 2017

dev-develop

dev-develop

  Sources   Download

MIT

The Requires

 

07/07 2017

dev-completion-listener

dev-completion-listener

  Sources   Download

MIT

The Requires

 

07/07 2017

0.5.0

0.5.0.0

  Sources   Download

MIT

The Requires