Skip to content

Commit 9058aa5

Browse files
committed
test: update failed test
1 parent 94f8aa7 commit 9058aa5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/system/HTTP/IncomingRequestTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use CodeIgniter\HTTP\Files\UploadedFile;
1717
use CodeIgniter\Test\CIUnitTestCase;
1818
use Config\App;
19+
use TypeError;
1920

2021
/**
2122
* @backupGlobals enabled
@@ -1072,10 +1073,7 @@ public function testGetIPAddressThruProxyBothIPv4AndIPv6()
10721073

10731074
public function testGetIPAddressThruProxyInvalidConfigString()
10741075
{
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-
);
1076+
$this->expectException(TypeError::class);
10791077

10801078
$config = new App();
10811079
$config->proxyIPs = '192.168.5.0/28';

0 commit comments

Comments
 (0)