Skip to content

Commit caef493

Browse files
committed
improved functions docs
1 parent db5b897 commit caef493

File tree

1 file changed

+45
-9
lines changed

1 file changed

+45
-9
lines changed

tests/src/Pdp/ParserTest.php

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@ public function testParseBadUrlThrowsInvalidArgumentException()
5959
}
6060

6161
/**
62-
* @covers Pdp\Parser::parseUrl()
62+
* @covers Pdp\Parser::parseUrl()
6363
* @dataProvider parseDataProvider
64+
*
65+
* @param $url
66+
* @param $publicSuffix
67+
* @param $registerableDomain
68+
* @param $subdomain
69+
* @param $hostPart
6470
*/
6571
public function testParseUrl($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
6672
{
@@ -69,9 +75,15 @@ public function testParseUrl($url, $publicSuffix, $registerableDomain, $subdomai
6975
}
7076

7177
/**
72-
* @covers Pdp\Parser::parseUrl()
73-
* @covers Pdp\Parser::parseHost()
78+
* @covers Pdp\Parser::parseUrl()
79+
* @covers Pdp\Parser::parseHost()
7480
* @dataProvider parseDataProvider
81+
*
82+
* @param $url
83+
* @param $publicSuffix
84+
* @param $registerableDomain
85+
* @param $subdomain
86+
* @param $hostPart
7587
*/
7688
public function testParseHost($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
7789
{
@@ -84,9 +96,15 @@ public function testParseHost($url, $publicSuffix, $registerableDomain, $subdoma
8496
}
8597

8698
/**
87-
* @covers Pdp\Parser::parseUrl()
88-
* @covers Pdp\Parser::getPublicSuffix()
99+
* @covers Pdp\Parser::parseUrl()
100+
* @covers Pdp\Parser::getPublicSuffix()
89101
* @dataProvider parseDataProvider
102+
*
103+
* @param $url
104+
* @param $publicSuffix
105+
* @param $registerableDomain
106+
* @param $subdomain
107+
* @param $hostPart
90108
*/
91109
public function testGetPublicSuffix($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
92110
{
@@ -107,9 +125,15 @@ public function testGetPublicSuffixHandlesWrongCaseProperly()
107125
}
108126

109127
/**
110-
* @covers Pdp\Parser::parseUrl()
111-
* @covers Pdp\Parser::getRegisterableDomain()
128+
* @covers Pdp\Parser::parseUrl()
129+
* @covers Pdp\Parser::getRegisterableDomain()
112130
* @dataProvider parseDataProvider
131+
*
132+
* @param $url
133+
* @param $publicSuffix
134+
* @param $registerableDomain
135+
* @param $subdomain
136+
* @param $hostPart
113137
*/
114138
public function testGetRegisterableDomain($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
115139
{
@@ -119,9 +143,15 @@ public function testGetRegisterableDomain($url, $publicSuffix, $registerableDoma
119143
}
120144

121145
/**
122-
* @covers Pdp\Parser::parseUrl()
123-
* @covers Pdp\Parser::getSubdomain()
146+
* @covers Pdp\Parser::parseUrl()
147+
* @covers Pdp\Parser::getSubdomain()
124148
* @dataProvider parseDataProvider
149+
*
150+
* @param $url
151+
* @param $publicSuffix
152+
* @param $registerableDomain
153+
* @param $subdomain
154+
* @param $hostPart
125155
*/
126156
public function testGetSubdomain($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
127157
{
@@ -147,6 +177,12 @@ public function testGetSubdomainHandlesWrongCaseProperly()
147177
/**
148178
* @dataProvider parseDataProvider
149179
* @covers ::pdp_parse_url
180+
*
181+
* @param $url
182+
* @param $publicSuffix
183+
* @param $registerableDomain
184+
* @param $subdomain
185+
* @param $hostPart
150186
*/
151187
public function testpdp_parse_urlCanReturnCorrectHost($url, $publicSuffix, $registerableDomain, $subdomain, $hostPart)
152188
{

0 commit comments

Comments
 (0)