File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function _before(TestInterface $test)
104
104
/**
105
105
* Sends message to exchange by sending exchange name, message
106
106
* and (optionally) a routing key
107
- *
107
+ *
108
108
* ``` php
109
109
* <?php
110
110
* $I->pushToExchange('exchange.emails', 'thanks');
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class AMQPTest extends \PHPUnit_Framework_TestCase
11
11
'port ' => '5672 ' ,
12
12
'vhost ' => '/ ' ,
13
13
'cleanup ' => false ,
14
- 'queues ' => array ('queue1 ' )
14
+ 'queues ' => array ('queue1 ' )
15
15
);
16
16
17
17
/**
@@ -24,7 +24,9 @@ public function setUp()
24
24
$ this ->module = new \Codeception \Module \AMQP (make_container ());
25
25
$ this ->module ->_setConfig ($ this ->config );
26
26
$ 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
+ }
28
30
29
31
$ this ->module ->_initialize ();
30
32
$ connection = $ this ->module ->connection ;
@@ -34,8 +36,6 @@ public function setUp()
34
36
public function testQueueUsage ()
35
37
{
36
38
$ this ->module ->pushToQueue ('queue1 ' , 'hello ' );
37
- $ this ->module ->seeMessageInQueueContainsText ('queue1 ' ,'hello ' );
39
+ $ this ->module ->seeMessageInQueueContainsText ('queue1 ' , 'hello ' );
38
40
}
39
-
40
-
41
41
}
You can’t perform that action at this time.
0 commit comments