mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
fix: various notice fixes (#3718)
This commit is contained in:
parent
b9ec6a0eb4
commit
2172df9fa2
7 changed files with 27 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue