File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ class PublicSuffixListManagerTest extends TestCase
16
16
* @var PublicSuffixListManager List manager
17
17
*/
18
18
protected $ manager ;
19
- protected $ cache ;
20
- protected $ root ;
21
- protected $ cacheDir ;
22
19
protected $ cachePool ;
20
+ protected $ cacheDir ;
21
+ protected $ root ;
23
22
24
23
public function setUp ()
25
24
{
@@ -50,9 +49,9 @@ public function testGetProvidedListFromDefaultCacheDir()
50
49
51
50
public function testGetDifferentPublicList ()
52
51
{
53
- $ publicList = $ this ->manager ->getList ();
52
+ $ publicSuffixList = $ this ->manager ->getList ();
54
53
$ invalidList = $ this ->manager ->getList ('invalid type ' );
55
- $ this ->assertEquals ($ publicList , $ invalidList );
54
+ $ this ->assertEquals ($ publicSuffixList , $ invalidList );
56
55
}
57
56
58
57
public function testRefreshList ()
Original file line number Diff line number Diff line change 13
13
namespace Pdp \Tests ;
14
14
15
15
use Pdp \Cache \FileCacheAdapter ;
16
+ use Pdp \Http \CurlHttpAdapter ;
16
17
use Pdp \MatchedDomain ;
17
18
use Pdp \NullDomain ;
18
19
use Pdp \PublicSuffixList ;
@@ -29,9 +30,8 @@ class PublicSuffixListTest extends TestCase
29
30
30
31
public function setUp ()
31
32
{
32
- $ cache = new FileCacheAdapter ();
33
- $ rules = $ cache ->get (PublicSuffixListManager::ALL_DOMAINS );
34
- $ this ->list = new PublicSuffixList ($ rules );
33
+ $ manager = new PublicSuffixListManager (new FileCacheAdapter (), new CurlHttpAdapter ());
34
+ $ this ->list = $ manager ->getList ();
35
35
}
36
36
37
37
public function testGetRules ()
You can’t perform that action at this time.
0 commit comments