6
6
use Enqueue \Redis \RedisContext ;
7
7
use Enqueue \Test \ClassExtensionTrait ;
8
8
use Interop \Queue \PsrConnectionFactory ;
9
+ use PHPUnit \Framework \TestCase ;
9
10
10
- class RedisConnectionFactoryTest extends \ PHPUnit \ Framework \ TestCase
11
+ class RedisConnectionFactoryTest extends TestCase
11
12
{
12
13
use ClassExtensionTrait;
13
14
@@ -16,38 +17,6 @@ public function testShouldImplementConnectionFactoryInterface()
16
17
$ this ->assertClassImplements (PsrConnectionFactory::class, RedisConnectionFactory::class);
17
18
}
18
19
19
- public function testCouldBeConstructedWithEmptyConfiguration ()
20
- {
21
- $ factory = new RedisConnectionFactory ([]);
22
-
23
- $ this ->assertAttributeEquals ([
24
- 'host ' => null ,
25
- 'port ' => null ,
26
- 'timeout ' => null ,
27
- 'reserved ' => null ,
28
- 'retry_interval ' => null ,
29
- 'persisted ' => false ,
30
- 'lazy ' => true ,
31
- 'vendor ' => 'phpredis ' ,
32
- ], 'config ' , $ factory );
33
- }
34
-
35
- public function testCouldBeConstructedWithCustomConfiguration ()
36
- {
37
- $ factory = new RedisConnectionFactory (['host ' => 'theCustomHost ' ]);
38
-
39
- $ this ->assertAttributeEquals ([
40
- 'host ' => 'theCustomHost ' ,
41
- 'port ' => null ,
42
- 'timeout ' => null ,
43
- 'reserved ' => null ,
44
- 'retry_interval ' => null ,
45
- 'persisted ' => false ,
46
- 'lazy ' => true ,
47
- 'vendor ' => 'phpredis ' ,
48
- ], 'config ' , $ factory );
49
- }
50
-
51
20
public function testShouldCreateLazyContext ()
52
21
{
53
22
$ factory = new RedisConnectionFactory (['lazy ' => true ]);
0 commit comments