This introduces a testing framework for writing unit and integration tests with PHPUnit. The tests and split into separate suites in phpunit.xml.dist so they can be run independently.
Unit tests use Brain Monkey for mocking WP functions when possible.
Integration tests are based on the WordPress testing suite and require a database to be set up before they can be run. WordPress and its testing suite are managed with Composer as development dependencies.
This introduces a testing framework for writing unit and integration tests with PHPUnit. The tests and split into separate suites in
phpunit.xml.dist
so they can be run independently.Unit tests use Brain Monkey for mocking WP functions when possible.
Integration tests are based on the WordPress testing suite and require a database to be set up before they can be run. WordPress and its testing suite are managed with Composer as development dependencies.