]> git.immae.eu Git - github/shaarli/Shaarli.git/commit - tests/http/UrlUtils/GetUrlSchemeTest.php
Url: introduce global helper functions for cleanup and scheme detection 337/head
authorGuillaume Virlet <github@virlet.org>
Wed, 2 Sep 2015 11:55:39 +0000 (13:55 +0200)
committerGuillaume Virlet <github@virlet.org>
Tue, 8 Sep 2015 20:00:37 +0000 (22:00 +0200)
commitef591e7ee21435da9314c5f7f6ea983c6f423898
treea58c1bcaab33d42161b23d55c739737526ea17e9
parent0a813cfd7cdf3c81faba8568bf6e2e667aae6f13
Url: introduce global helper functions for cleanup and scheme detection

Relates to #314 & #326

Additions:
 - add global `cleanup_url()` and `get_url_scheme()` functions

Modifications:
 - replace `Url` usage in `index.php` by calls to global functions
 - fix `Url` tests not being run: PHPUnit expects a single test class per file
   - move classes to separate files
application/LinkDB.php
application/Url.php
index.php
tests/Url/CleanupUrlTest.php [new file with mode: 0644]
tests/Url/GetUrlSchemeTest.php [new file with mode: 0644]
tests/Url/UnparseUrlTest.php [new file with mode: 0644]
tests/Url/UrlTest.php [moved from tests/UrlTest.php with 85% similarity]