Skip to content

Commit

Permalink
queue interop
Browse files Browse the repository at this point in the history
  • Loading branch information
ASKozienko committed Aug 1, 2017
1 parent 4abd1c8 commit 6b89628
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"phpunit/phpunit": "~4.4",
"queue-interop/queue-interop": "^0.5.0",
"queue-interop/amqp-interop": "^0.5.0"
"enqueue/amqp-lib": "0.7.x-dev"
},
"suggest": {
"ext-pcntl": "Need for process signals.",
Expand All @@ -46,7 +45,7 @@
"php-enqueue/fs": "Needs for support of filesystem queue with queue interop",
"php-enqueue/gearman": "Needs for support of Gearman queue with queue interop",
"php-enqueue/pheanstalk": "Needs for support of Beanstalk queue with queue interop",
"php-enqueue/stomp": "Needs for support of STOMP queue with queue interop",
"php-enqueue/stomp": "Needs for support of STOMP queue with queue interop"
},
"autoload": {
"psr-4": {
Expand Down
37 changes: 37 additions & 0 deletions tests/drivers/queue_interop/QueueTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace tests\drivers\queue_interop;

use tests\drivers\CliTestCase;
use yii\queue\queue_interop\Queue;

class QueueTest extends CliTestCase
{
/**
* @return Queue
*/
protected function getQueue()
{
return \Yii::$app->interopQueue;
}

public function testRun()
{
// Not supported
}

public function testStatus()
{
// Not supported
}

public function testLater()
{
// Not supported
}

public function testRetry()
{
// Limited support
}
}

0 comments on commit 6b89628

Please sign in to comment.