File "InternalUtilsTest.php"
Full Path: /home/mba/public_html/wp-content-20250807152928/plugins/w3-total-cache/vendor/guzzlehttp/guzzle/tests/InternalUtilsTest.php
File size: 490 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace GuzzleHttp\Test;
use GuzzleHttp\Psr7;
use GuzzleHttp\Utils;
use PHPUnit\Framework\TestCase;
class InternalUtilsTest extends TestCase
{
public function testCurrentTime()
{
self::assertGreaterThan(0, Utils::currentTime());
}
public function testIdnConvert()
{
$uri = Psr7\uri_for('https://яндекс.рф/images');
$uri = Utils::idnUriConvert($uri);
self::assertSame('xn--d1acpjx3f.xn--p1ai', $uri->getHost());
}
}