We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a34b9 commit 5a67368Copy full SHA for 5a67368
1 file changed
SqsExtension.php
@@ -9,19 +9,10 @@ trait SqsExtension
9
{
10
private function buildSqsContext(): SqsContext
11
12
- if (false == getenv('AWS_SQS_ENDPOINT') && false == getenv('AWS_SQS_KEY')) {
+ if (false == $dsn = getenv('SQS_DSN')) {
13
throw new \PHPUnit_Framework_SkippedTestError('Functional tests are not allowed in this environment');
14
}
15
16
- $config = [
17
- 'key' => getenv('AWS_SQS_KEY'),
18
- 'secret' => getenv('AWS_SQS_SECRET'),
19
- 'region' => getenv('AWS_SQS_REGION'),
20
- 'version' => getenv('AWS_SQS_VERSION'),
21
- 'endpoint' => getenv('AWS_SQS_ENDPOINT'),
22
- 'lazy' => false,
23
- ];
24
-
25
- return (new SqsConnectionFactory($config))->createContext();
+ return (new SqsConnectionFactory($dsn))->createContext();
26
27
0 commit comments