Skip to content

Commit bc446a1

Browse files
MAXakaWIZARDDavertMik
authored andcommitted
PSR-2 compliance (#3105)
* Add composer.lock to .gitignore * Put direct link to coding standards description * Fix spacing * Fix code style for ext and symfony-shim * Fix PSR2 compliance issues * Fix PSR2 compliance issues * Add generated test files to gitginore * Fix PSR2 compliance issues in tests * Get rid of long code lines in tests to comply PSR2 * Get rid of long code lines to comply PSR2 * Add code style rule set * Fix wrong indentation * Improve code style
1 parent 1c6e1aa commit bc446a1

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(TestCase $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)