Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Mar 3, 2024
1 parent eeddb50 commit aa34436
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/UriExtensionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ public function testDeprecation(): void
{
$handler = new ErrorHandler();
$uri = new Uri('https://xn--zca0cg32z7rau82strvd.com');
$handler->with(function () use ($uri) {
$handler->withAll(function () use ($uri) {
$uri->getHost(Uri::IDNA);
}, function ($error) {
$this->assertEquals('Flag IDNA is deprecated; use IDN_ENCODE instead', $error->getMessage());
}, function ($errors) {
$this->assertEquals('Flag IDNA is deprecated; use IDN_ENCODE instead', $errors[0]->getMessage());
});
$handler->with(function () use ($uri) {
$handler->withAll(function () use ($uri) {
$uri->withHost('xn--zca0cg32z7rau82strvd.com', Uri::IDNA);
}, function ($error) {
$this->assertEquals('Flag IDNA is deprecated; use IDN_ENCODE instead', $error->getMessage());
}, function ($errors) {
$this->assertEquals('Flag IDNA is deprecated; use IDN_ENCODE instead', $errors[0]->getMessage());
});
}
}

0 comments on commit aa34436

Please sign in to comment.