| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A complete example for using WP PHPUnit in the context of plugin development.
Travis CI Configuration
A ready to use .travis.yml configured with a reasonable test matrix
Just Add Tests
This project includes a working example test-example.php test case. Adding tests is as simple as adding methods to this example class! Getting up and running couldn't be easier.
Install Composer dependencies
$ composer installCreate a database for your tests to use and update your tests/wp-config.php as necessary.
$ mysqladmin create wp_phpunit_tests -u rootThe database name defaults to wp_phpunit_tests, but you can change this in the tests/wp-config.php without affecting the Travis configuration which is environment variable-based.
Run the tests
$ composer test| Back | FazBrowse Home | New Git URL |