Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
61 stars 20 forks source link

PHPUnit: Move the config file #182

Closed jrfnl closed 5 years ago

jrfnl commented 5 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

If phpunit.xml or phpunit.xml.dist (in that order) exist in the current working directory and --configuration is not used, the configuration will be automatically read from that file.

From: https://phpunit.de/manual/6.5/en/organizing-tests.html#organizing-tests.xml-configuration

In other words, moving the phpunit.xml.dist file to the project root allows for running PHPUnit without passing --configuration and makes it more obvious that there are unit tests associated with the PHP code in this plugin.

Includes adding phpunit.xml to the .gitignore file to allow devs to use that file for their own custom configuration.

Test instructions

This PR can be tested by following these steps:

Dieterrr commented 5 years ago

CR Done 👍