12
12
13
13
namespace Predis \Configuration \Option ;
14
14
15
- use PHPUnit \Framework \MockObject \MockObject ;
16
15
use Predis \Configuration \OptionsInterface ;
17
16
use PredisTestCase ;
18
17
use stdClass ;
@@ -37,7 +36,7 @@ public function testDefaultOptionValue(): void
37
36
*/
38
37
public function testAcceptsNamedArrayWithSchemeToConnectionClassMappings (): void
39
38
{
40
- /** @var OptionsInterface */
39
+ /** @var \Predis\Configuration\ OptionsInterface */
41
40
$ options = $ this ->getMockBuilder ('Predis\Configuration\OptionsInterface ' )->getMock ();
42
41
43
42
$ class = get_class ($ this ->getMockBuilder ('Predis\Connection\NodeConnectionInterface ' )->getMock ());
@@ -49,7 +48,7 @@ public function testAcceptsNamedArrayWithSchemeToConnectionClassMappings(): void
49
48
->method ('define ' )
50
49
->with ($ this ->matchesRegularExpression ('/^tcp|redis$/ ' ), $ class );
51
50
52
- /** @var OptionInterface */
51
+ /** @var \Predis\Configuration\ OptionInterface */
53
52
$ option = $ this ->getMockBuilder ('Predis\Configuration\Option\Connections ' )
54
53
->onlyMethods (['getDefault ' ])
55
54
->getMock ();
@@ -140,7 +139,7 @@ public function testUsesParametersOptionToSetDefaultParameters(): void
140
139
{
141
140
$ parameters = ['database ' => 5 , 'password ' => 'mypassword ' ];
142
141
143
- /** @var OptionsInterface|MockObject */
142
+ /** @var \Predis\Configuration\ OptionsInterface|\PHPUnit\Framework\MockObject\MockObject\ MockObject */
144
143
$ options = $ this ->getMockBuilder ('Predis\Configuration\OptionsInterface ' )->getMock ();
145
144
$ options
146
145
->expects ($ this ->once ())
@@ -164,7 +163,7 @@ public function testUsesParametersOptionToSetDefaultParameters(): void
164
163
*/
165
164
public function testAcceptsConnectionFactoryInstance (): void
166
165
{
167
- /** @var OptionInterface */
166
+ /** @var \Predis\Configuration\ OptionInterface */
168
167
$ option = $ this ->getMockBuilder ('Predis\Configuration\Option\Connections ' )
169
168
->onlyMethods (['getDefault ' ])
170
169
->getMock ();
@@ -185,7 +184,7 @@ public function testAcceptsCallableReturningConnectionFactoryInstance(): void
185
184
{
186
185
$ option = new Connections ();
187
186
188
- /** @var OptionsInterface */
187
+ /** @var \Predis\Configuration\ OptionsInterface */
189
188
$ options = $ this ->getMockBuilder ('Predis\Configuration\OptionsInterface ' )->getMock ();
190
189
191
190
$ callable = $ this ->getMockBuilder ('stdClass ' )
@@ -212,7 +211,7 @@ public function testThrowsExceptionOnInvalidArguments(): void
212
211
213
212
$ option = new Connections ();
214
213
215
- /** @var OptionsInterface */
214
+ /** @var \Predis\Configuration\ OptionsInterface */
216
215
$ options = $ this ->getMockBuilder ('Predis\Configuration\OptionsInterface ' )->getMock ();
217
216
218
217
$ option ->filter ($ options , new stdClass ());
0 commit comments