Lines Matching refs:expected
116 * @param bool $expected The expected result from ipInRange().
120 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument
124 $this->assertSame($expected, $result);
161 * @param bool $expected The expeced result from ipMatches().
165 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
169 $this->assertSame($expected, $result);
226 * @param bool $expected The expected result from proxyIsTrusted().
228 public function test_proxy_is_trusted($config, string $ip, bool $expected): void argument
235 $this->assertSame($expected, $result);
309 * @param array $expected The expected result from forwardedFor().
313 …public function test_forwarded_for($config, string $header, string $remoteAddr, array $expected): … argument
324 $this->assertSame($expected, $result);
385 * @param bool $expected The expected result from isSsl().
389 …st_is_ssl($config, string $remoteAddr, string $https, string $forwardedProto, bool $expected): void argument
401 $this->assertSame($expected, $result);
444 * @param string $expected The expected result from hostName().
448 …g $remoteAddr, string $forwardedHost, string $httpHost, string $serverName, string $expected): void argument
461 $this->assertSame($expected, $result);
487 public function test_client_ip($client_ip_header, array $server, string $expected): void argument
505 $this->assertSame($expected, $result);