Lines Matching refs:expected
90 * @param bool $expected The expected result from ipInRange().
94 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument
98 $this->assertSame($expected, $result);
135 * @param bool $expected The expeced result from ipMatches().
139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
143 $this->assertSame($expected, $result);
200 * @param bool $expected The expected result from proxyIsTrusted().
202 public function test_proxy_is_trusted($config, string $ip, bool $expected): void argument
209 $this->assertSame($expected, $result);
283 * @param array $expected The expected result from forwardedFor().
287 …public function test_forwarded_for($config, string $header, string $remoteAddr, array $expected): … argument
298 $this->assertSame($expected, $result);
359 * @param bool $expected The expected result from isSsl().
363 …st_is_ssl($config, string $remoteAddr, string $https, string $forwardedProto, bool $expected): void argument
375 $this->assertSame($expected, $result);
418 * @param string $expected The expected result from hostName().
422 …g $remoteAddr, string $forwardedHost, string $httpHost, string $serverName, string $expected): void argument
435 $this->assertSame($expected, $result);