From 691e0dd44aebe9a1ca123a181e74cb79921a1bd0 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 Dec 2023 07:36:13 +0000 Subject: [PATCH] Added another test case --- tests/src/Util/NetworkTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/Util/NetworkTest.php b/tests/src/Util/NetworkTest.php index f98ee19a2c..0c25272afc 100644 --- a/tests/src/Util/NetworkTest.php +++ b/tests/src/Util/NetworkTest.php @@ -33,6 +33,7 @@ class NetworkTest extends TestCase { self::assertTrue(Network::isValidUri('https://friendi.ca')); self::assertTrue(Network::isValidUri('magnet:?xs=https%3A%2F%2Ftube.jeena.net%2Flazy-static%2Ftorrents%2F04bec7a8-34de-4847-b080-6ee00c4b3d49-1080-hls.torrent&xt=urn:btih:5def5a24dfa7307e999a0d4f0fcc29c3e2b13be2&dn=My+fediverse+setup+-+I+host+everything+myself&tr=https%3A%2F%2Ftube.jeena.net%2Ftracker%2Fannounce&tr=wss%3A%2F%2Ftube.jeena.net%3A443%2Ftracker%2Fsocket&ws=https%3A%2F%2Ftube.jeena.net%2Fstatic%2Fstreaming-playlists%2Fhls%2F23989f41-e230-4dbf-9111-936bc730bf50%2Fe5905de3-e488-4bb8-a1e8-eb7a53ac24ad-1080-fragmented.mp4')); + self::assertTrue(Network::isValidUri('did:plc:54alhpjxysxurr3c63zfk63f')); self::assertFalse(Network::isValidUri('https://')); self::assertFalse(Network::isValidUri('')); self::assertFalse(Network::isValidUri(null));