Skip to content

Commit 030a3ad

Browse files
committed
[amqp] add producer spec.
1 parent d48925f commit 030a3ad

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Enqueue\AmqpExt\Tests\Spec;
4+
5+
use Enqueue\AmqpExt\AmqpConnectionFactory;
6+
use Interop\Queue\Spec\PsrProducerSpec;
7+
8+
/**
9+
* @group functional
10+
*/
11+
class AmqpProducerTest extends PsrProducerSpec
12+
{
13+
/**
14+
* {@inheritdoc}
15+
*/
16+
protected function createProducer()
17+
{
18+
$factory = new AmqpConnectionFactory(getenv('AMQP_DSN'));
19+
20+
return $factory->createContext()->createProducer();
21+
}
22+
}

0 commit comments

Comments
 (0)