Skip to content

Commit f2fa182

Browse files
Merge branch '5.0'
* 5.0: (36 commits) Add test for tagged iterator with numeric index Fix container lint command when a synthetic service is used in combination with the expression language Fix Travis script [Validator][Range] Fix typos [SecurityBundle] Minor fix in LDAP config tree builder [HttpClient] fix requests to hosts that idn_to_ascii() cannot handle Revert "minor #35559 [FrameworkBundle] remove mention of the old Controller class (nicolas-grekas)" [FrameworkBundle] remove redundant PHPDoc in console Descriptor and subclass [Mime] remove phpdoc mentioning Utf8AddressEncoder Add missing phpdoc Remove int return type from FlattenException::getCode [Yaml] fix dumping strings containing CRs [DI] Fix XmlFileLoader bad error message [Form] Handle false as empty value on expanded choices [Messenger] Add ext-redis min version req to tests Tweak message improve PlaintextPasswordEncoder docBlock summary [Validator] Add two missing translations for the Arabic (ar) locale Use some PHP 5.4 constants unconditionally Add new packages on the link script ...
2 parents 59918a5 + 43d4cdf commit f2fa182

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Test/HttpClientTestCase.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,23 @@ public function testResolve()
703703
$client->request('GET', 'http://symfony.com:8057/', ['timeout' => 1]);
704704
}
705705

706+
public function testIdnResolve()
707+
{
708+
$client = $this->getHttpClient(__FUNCTION__);
709+
710+
$response = $client->request('GET', 'http://0-------------------------------------------------------------0.com:8057/', [
711+
'resolve' => ['0-------------------------------------------------------------0.com' => '127.0.0.1'],
712+
]);
713+
714+
$this->assertSame(200, $response->getStatusCode());
715+
716+
$response = $client->request('GET', 'http://Bücher.example:8057/', [
717+
'resolve' => ['xn--bcher-kva.example' => '127.0.0.1'],
718+
]);
719+
720+
$this->assertSame(200, $response->getStatusCode());
721+
}
722+
706723
public function testNotATimeout()
707724
{
708725
$client = $this->getHttpClient(__FUNCTION__);

0 commit comments

Comments
 (0)