We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f9fde commit 59fad43Copy full SHA for 59fad43
RabbitmqAmqpExtension.php
@@ -26,4 +26,16 @@ private function buildAmqpContext()
26
27
return (new AmqpConnectionFactory($config))->createContext();
28
}
29
+
30
+ /**
31
+ * @return AmqpContext
32
+ */
33
+ private function buildAmqpContextFromDsn()
34
+ {
35
+ if (false == $dsn = getenv('AMQP_DSN')) {
36
+ throw new \PHPUnit_Framework_SkippedTestError('Functional tests are not allowed in this environment');
37
+ }
38
39
+ return (new AmqpConnectionFactory($dsn))->createContext();
40
41
0 commit comments