As of writing and with YOURLS 1.8.3-dev, expectedly works with http(s)://sho.rt/ozh
but fail with http(s)://www.sho.rt/ozh
(and logically if YOURLS_SITE has www.
(eg http://www.sho.rt
) the failures and success get inverted)
$ phpunit --filter ShortURL_Is_Shorturl_Tests
YOURLS installed, starting PHPUnit
PHPUnit 8.5.14 by Sebastian Bergmann and contributors.
Runtime: PHP 8.0.1 with Xdebug 3.0.2
Configuration: D:\home\planetozh\ozh.in\phpunit.xml
..FF 4 / 4 (100%)
Time: 2.26 seconds, Memory: 24.00 MB
There were 2 failures:
1) ShortURL_Is_Shorturl_Tests::test_is_shorturl_https_www
Failed asserting that false is true.
[...]
D:\home\planetozh\ozh.in\tests\tests\shorturl\is_shorturl.php:78
[...]
2) ShortURL_Is_Shorturl_Tests::test_is_shorturl_http_www
Failed asserting that false is true.
[...]
D:\home\planetozh\ozh.in\tests\tests\shorturl\is_shorturl.php:84
[...]
FAILURES!
Tests: 4, Assertions: 4, Failures: 2.