We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setAccessible
1 parent 45ee94a commit 222821cCopy full SHA for 222821c
tests/ServerRequestTest.php
@@ -36,6 +36,10 @@
36
* @coversNothing
37
*/
38
#[CoversNothing]
39
+/**
40
+ * @internal
41
+ * @coversNothing
42
+ */
43
class ServerRequestTest extends TestCase
44
{
45
protected function tearDown(): void
@@ -166,7 +170,6 @@ public function testParseHost()
166
170
$hostStrIPv6 = '[fe80::a464:1aff:fe88:7b5a]:9502';
167
171
$objReflectClass = new ReflectionClass('Hyperf\HttpMessage\Server\Request');
168
172
$method = $objReflectClass->getMethod('parseHost');
169
- $method->setAccessible(true);
173
174
$resIPv4 = $method->invokeArgs(null, [$hostStrIPv4]);
175
$this->assertSame('192.168.119.100', $resIPv4[0]);
0 commit comments