From now on rewrite module methods are fully covered by unit tests.
New areas fixed and tested:
* correct_protocol() – bugfixed and covered now, ensures correct protocol for given link (http or https)
* rewrite_replace_links() – accepts string, find internal links and rewrite them all, depending on settings
* get_unique_links() – find framework/project links, skipping all other
* main()->USE_ONLY_HTTPS – force use HTTPS everywhere
* main()->HTTPS_ENABLED_FOR – selected HTTPS usage array of patterns,
now also supports closures as array values, not only patterns
Patterns automatically enclosed into ‘@’.$pattern.’@ims’
You can see details and examples of usage here:
https://github.com/yfix/yf/blob/master/.dev/tests/class_rewrite.Test.php