Automattic / wp-memcached

Memcached Object Cache for WordPress.
https://wordpress.org/plugins/memcached/
GNU General Public License v2.0
159 stars 55 forks source link

Fix code coverage generation #83

Closed sjinks closed 2 years ago

sjinks commented 2 years ago

PHPUnit refuses to generate a coverage report for object-cache.php moved to another directory (example). This PR updates the test bootstrap to create wp-content/object-cache.php that require_once our object-cache.php. This way, the coverage is generated for the original file, and PHPUnit can process it.