Skip to content

Commit 58e253e

Browse files
committed
merged 2.1
2 parents 0e11e77 + bc446a1 commit 58e253e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Codeception/Module/AMQP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function _before(TestInterface $test)
104104
/**
105105
* Sends message to exchange by sending exchange name, message
106106
* and (optionally) a routing key
107-
*
107+
*
108108
* ``` php
109109
* <?php
110110
* $I->pushToExchange('exchange.emails', 'thanks');

tests/unit/Codeception/Module/AMQPTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AMQPTest extends \PHPUnit_Framework_TestCase
1111
'port' => '5672',
1212
'vhost' => '/',
1313
'cleanup' => false,
14-
'queues' => array('queue1')
14+
'queues' => array('queue1')
1515
);
1616

1717
/**
@@ -24,7 +24,9 @@ public function setUp()
2424
$this->module = new \Codeception\Module\AMQP(make_container());
2525
$this->module->_setConfig($this->config);
2626
$res = stream_socket_client('tcp://localhost:5672');
27-
if ($res === false) $this->markTestSkipped('AMQP is not running');
27+
if ($res === false) {
28+
$this->markTestSkipped('AMQP is not running');
29+
}
2830

2931
$this->module->_initialize();
3032
$connection = $this->module->connection;
@@ -34,8 +36,6 @@ public function setUp()
3436
public function testQueueUsage()
3537
{
3638
$this->module->pushToQueue('queue1', 'hello');
37-
$this->module->seeMessageInQueueContainsText('queue1','hello');
39+
$this->module->seeMessageInQueueContainsText('queue1', 'hello');
3840
}
39-
40-
4141
}

0 commit comments

Comments
 (0)