Skip to content

Commit 4a4678f

Browse files
committed
Update to fix parser tests.
1 parent 33c9409 commit 4a4678f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/src/Pdp/CheckPublicSuffixTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public function testPublicSuffixSpec()
6464
$this->checkPublicSuffix('a.b.example.uk.com', 'example.uk.com');
6565
$this->checkPublicSuffix('test.ac', 'test.ac');
6666
// TLD with only 1 (wildcard) rule.
67-
$this->checkPublicSuffix('cy', null);
68-
$this->checkPublicSuffix('c.cy', null);
69-
$this->checkPublicSuffix('b.c.cy', 'b.c.cy');
70-
$this->checkPublicSuffix('a.b.c.cy', 'b.c.cy');
67+
$this->checkPublicSuffix('mm', null);
68+
$this->checkPublicSuffix('c.mm', null);
69+
$this->checkPublicSuffix('b.c.mm', 'b.c.mm');
70+
$this->checkPublicSuffix('a.b.c.mm', 'b.c.mm');
7171
// More complex TLD.
7272
$this->checkPublicSuffix('jp', null);
7373
$this->checkPublicSuffix('test.jp', 'test.jp');

tests/src/Pdp/ParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function parseDataProvider()
189189
array('cea-law.co.il', 'co.il', 'cea-law.co.il', null, 'cea-law.co.il'),
190190
array('http://edition.cnn.com/WORLD/', 'com', 'cnn.com', 'edition', 'edition.cnn.com'),
191191
array('http://en.wikipedia.org/', 'org', 'wikipedia.org', 'en', 'en.wikipedia.org'),
192-
array('a.b.c.cy', 'c.cy', 'b.c.cy', 'a', 'a.b.c.cy'),
192+
array('a.b.c.mm', 'c.mm', 'b.c.mm', 'a', 'a.b.c.mm'),
193193
array('https://test.k12.ak.us', 'k12.ak.us', 'test.k12.ak.us', null, 'test.k12.ak.us'),
194194
array('www.scottwills.co.uk', 'co.uk', 'scottwills.co.uk', 'www', 'www.scottwills.co.uk'),
195195
array('b.ide.kyoto.jp', 'ide.kyoto.jp', 'b.ide.kyoto.jp', null, 'b.ide.kyoto.jp'),

0 commit comments

Comments
 (0)