File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ public function createCachedShouldCreateResolverWithCachedExecutor()
3939 $ resolver = $ factory ->createCached ('8.8.8.8:53 ' , $ loop );
4040
4141 $ this ->assertInstanceOf ('React\Dns\Resolver\Resolver ' , $ resolver );
42- $ this ->assertInstanceOf ('React\Dns\Query\CachedExecutor ' , $ this ->getResolverPrivateMemberValue ($ resolver , 'executor ' ));
42+ $ executor = $ this ->getResolverPrivateMemberValue ($ resolver , 'executor ' );
43+ $ this ->assertInstanceOf ('React\Dns\Query\CachedExecutor ' , $ executor );
44+ $ recordCache = $ this ->getCachedExecutorPrivateMemberValue ($ executor , 'cache ' );
45+ $ this ->assertInstanceOf ('React\Cache\CacheInterface ' , $ this ->getRecordCachePrivateMemberValue ($ recordCache , 'cache ' ));
46+ $ this ->assertInstanceOf ('React\Cache\ArrayCache ' , $ this ->getRecordCachePrivateMemberValue ($ recordCache , 'cache ' ));
4347 }
4448
4549 /** @test */
You can’t perform that action at this time.
0 commit comments