1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-17 21:38:16 +01:00
guzzle/tests/InternalUtilsTest.php
Graham Campbell 3d17892590
Avoid "functions" from dependencies (#2712)
* Avoid "functions" from dependencies

* Added change log entry
2020-09-30 11:50:52 +02:00

26 lines
544 B
PHP

<?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());
}
/**
* @requires extension idn
*/
public function testIdnConvert()
{
$uri = Psr7\Utils::uriFor('https://яндекс.рф/images');
$uri = Utils::idnUriConvert($uri);
self::assertSame('xn--d1acpjx3f.xn--p1ai', $uri->getHost());
}
}