Lines Matching full: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);
205 * @param bool $expected The expeced result from ipMatches().
209 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
213 $this->assertSame($expected, $result);
270 * @param bool $expected The expected result from proxyIsTrusted().
272 public function test_proxy_is_trusted($config, string $ip, bool $expected): void argument
279 $this->assertSame($expected, $result);
353 * @param array $expected The expected result from forwardedFor().
357 …public function test_forwarded_for($config, string $header, string $remoteAddr, array $expected): … argument
368 $this->assertSame($expected, $result);
429 * @param bool $expected The expected result from isSsl().
433 …st_is_ssl($config, string $remoteAddr, string $https, string $forwardedProto, bool $expected): void argument
445 $this->assertSame($expected, $result);
488 * @param string $expected The expected result from hostName().
492 …g $remoteAddr, string $forwardedHost, string $httpHost, string $serverName, string $expected): void argument
505 $this->assertSame($expected, $result);
531 public function test_client_ip($client_ip_header, array $server, string $expected): void argument
549 $this->assertSame($expected, $result);