File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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__ );
You can’t perform that action at this time.
0 commit comments