@@ -26,7 +26,7 @@ |
||
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 | } |
@@ -28,7 +28,7 @@ |
||
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 |
@@ -22,7 +22,7 @@ |
||
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 | } |
@@ -24,7 +24,7 @@ |
||
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 |
@@ -123,6 +123,9 @@ discard block |
||
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 |
||
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); |