Closed villfa closed 6 years ago
Sorry for the delay. I wanted to do all of this earlier today but the systems were malfunctioning. Going to run a few tests and merge this pronto!
Good stuff. I renamed the file from functions.php
to sitemap.functions.php
to avoid any possible conflicts with other files.
Related to #7.
To make the code testable I had to move the functions in their own file.
PHPUnit is the testing framework used to write the tests.
To install PHPUnit use Composer:
Then to run the tests:
For now only 2 functions are tested (ends_with and check_blacklist). These tests may serve as example.