Passed
Pull Request — master (#42)
by Nicolas
03:44
created
src/Messages/Chunks/ChunkedMessageMetadata.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         foreach($requiredKeys as $key)
28 28
         {
29
-            if(! isset($headers[$key]))
29
+            if( ! isset($headers[$key]))
30 30
             {
31 31
                 throw new \InvalidArgumentException("Missing $key in chunked message metadata");
32 32
             }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         {
29 29
             if(! isset($headers[$key]))
30 30
             {
31
-                throw new \InvalidArgumentException("Missing $key in chunked message metadata");
31
+                throw new \InvalidArgumentException("missing $key in chunked message metadata");
32 32
             }
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/Messages/Chunks/ChunkMetadata.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         foreach($requiredKeys as $key)
24 24
         {
25
-            if(! isset($headers[$key]))
25
+            if( ! isset($headers[$key]))
26 26
             {
27 27
                 throw new \InvalidArgumentException("Missing $key in chunk metadata");
28 28
             }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         {
25 25
             if(! isset($headers[$key]))
26 26
             {
27
-                throw new \InvalidArgumentException("Missing $key in chunk metadata");
27
+                throw new \InvalidArgumentException("missing $key in chunk metadata");
28 28
             }
29 29
         }
30 30
 
Please login to merge, or discard this patch.
features/bootstrap/SendContext.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
         \PHPUnit_Framework_Assert::assertSame(ContentType::TEXT, $headers[Gzip::HEADER_COMPRESSION_CONTENT_TYPE]);
124 124
     }
125 125
     
126
+    /**
127
+     * @param string $routingKey
128
+     */
126 129
     private function theMessageInQueueContains($routingKey, $content, $queueName, $contentType)
127 130
     {
128 131
         $messages = $this->api->getMessagesFromQueue($this->vhost(), $queueName);
@@ -139,6 +142,9 @@  discard block
 block discarded – undo
139 142
         return $message;
140 143
     }
141 144
     
145
+    /**
146
+     * @param integer $expectedNbMessages
147
+     */
142 148
     private function assertMessagesInQueue($queue, $expectedNbMessages, $waitingSeconds = 11)
143 149
     {
144 150
         $nbMessages = $this->nbMessagesInQueue($queue);
Please login to merge, or discard this patch.