fix: various notice fixes (#3718)

This commit is contained in:
Dag 2023-09-29 19:17:03 +02:00 committed by GitHub
parent b9ec6a0eb4
commit 2172df9fa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 5 deletions

View file

@ -46,4 +46,14 @@ final class UtilsTest extends TestCase
$this->assertSame(4, strlen(create_random_string(2)));
$this->assertSame(6, strlen(create_random_string(3)));
}
public function testUrljoin()
{
$base = '/';
$rel = 'https://example.com/foo';
$url = urljoin($base, $rel);
$this->assertSame($rel, $url);
}
}