We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94f8aa7 commit 9058aa5Copy full SHA for 9058aa5
1 file changed
tests/system/HTTP/IncomingRequestTest.php
@@ -16,6 +16,7 @@
16
use CodeIgniter\HTTP\Files\UploadedFile;
17
use CodeIgniter\Test\CIUnitTestCase;
18
use Config\App;
19
+use TypeError;
20
21
/**
22
* @backupGlobals enabled
@@ -1072,10 +1073,7 @@ public function testGetIPAddressThruProxyBothIPv4AndIPv6()
1072
1073
1074
public function testGetIPAddressThruProxyInvalidConfigString()
1075
{
- $this->expectException(ConfigException::class);
1076
- $this->expectExceptionMessage(
1077
- 'You must set an array with Proxy IP address key and HTTP header name value in Config\App::$proxyIPs.'
1078
- );
+ $this->expectException(TypeError::class);
1079
1080
$config = new App();
1081
$config->proxyIPs = '192.168.5.0/28';
0 commit comments