Skip to content

Commit 8c95f5e

Browse files
authored
Add test case and update oxford comma
1 parent f99b971 commit 8c95f5e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pkg/sqs/Tests/SqsConnectionFactoryConfigTest.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SqsConnectionFactoryConfigTest extends TestCase
1616
public function testThrowNeitherArrayStringNorNullGivenAsConfig()
1717
{
1818
$this->expectException(\LogicException::class);
19-
$this->expectExceptionMessage('The config must be either an array of options, a DSN string or null');
19+
$this->expectExceptionMessage('The config must be either an array of options, a DSN string, or null');
2020

2121
new SqsConnectionFactory(new \stdClass());
2222
}
@@ -103,6 +103,19 @@ public static function provideConfigs()
103103
'lazy' => false,
104104
],
105105
];
106+
107+
yield [
108+
['dsn' => 'sqs:?key=theKey&secret=theSecret&token=theToken&lazy=0'],
109+
[
110+
'key' => 'theKey',
111+
'secret' => 'theSecret',
112+
'token' => 'theToken',
113+
'region' => null,
114+
'retries' => 3,
115+
'version' => '2012-11-05',
116+
'lazy' => false,
117+
],
118+
];
106119

107120
yield [
108121
['key' => 'theKey', 'secret' => 'theSecret', 'token' => 'theToken', 'lazy' => false],

0 commit comments

Comments
 (0)